Tag: particular
How to add elements at a particular index in LinkedList
In this article we will discuss how to add elements at a particular index or position in a LinkedList in Java. add() member function of LinkedList always appends the element at the end of LinkedList. Now suppose we don’t want to add element at the end of Linked List instead of it we want to add element somewhere …
How to add elements at a particular index in LinkedListRead More
Replace character in string at a particular index in C++
In this article, we will discuss different ways to replace a character in string at a particular index in C++. Table Of Contents Introduction Case 1: The index of the character to be replaced and the new character are given as input. Using std::string::replace() Using the [] operator Case 2: The character to be replaced …
Replace character in string at a particular index in C++Read More