Question DSA-LL-0034
EasyWhat is the time complexity of finding the length of a singly linked list (with no stored count)?
- A.
O(1)
- 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 finding the length of a singly linked list (with no stored count)?
O(1)
O(log n)
Sign up free to see the answer and a step-by-step explanation.
O(n)
O(n²)