COMPUTER SCIENCE AND ENGINEERING
DATA STRUCTURES
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
How to insert a node after a position P in singly linked list?
|
Newnode
|
|
Newnode
|
|
Newnode
|
|
Newnode
|
Explanation:
Detailed explanation-1: -You can use addFirst() and addLast() methods to add an element at the start and end of the list.
There is 1 question to complete.