Question DSA-LL-0025
EasyWhat is the time complexity of deleting the head node of a linked list?
- A.
O(1)
- B.
O(n)
- 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
What is the time complexity of deleting the head node of a linked list?
O(1)
O(n)
Sign up free to see the answer and a step-by-step explanation.
O(log n)
O(n²)