Question DSA-LL-0038
EasyIn a singly linked list, how do you delete the node after node p?
- A.
Set p.next = p.next.next
- B.
Set p.next = p
- C.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Linked Lists question
In a singly linked list, how do you delete the node after node p?
Set p.next = p.next.next
Set p.next = p
Sign up free to see the answer and a step-by-step explanation.
Set p = null
Swap p with the head