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