Computer Science, asked by heenatab5207, 1 year ago

Given a linked list of n nodes. Remove the nodes having same entry in its adjacent node.

Answers

Answered by UrvashiBaliyan
1

Answer:

Explanation:

Write a function which takes a list sorted in non-decreasing order and deletes any duplicate nodes from the list. The list should only be traversed once.

For example if the linked list is 11->11->11->21->43->43->60 then removeDuplicates() should convert the list to 11->21->43->60.

may be it's helpful for you

Similar questions