Question DSA-LL-0076
HardWhat is the time complexity of finding the middle of a linked list with slow and fast pointers?
- 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 middle of a linked list with slow and fast pointers?
O(1)
O(log n)
Sign up free to see the answer and a step-by-step explanation.
O(n)
O(n²)