Question DSA-LL-0066
HardWhat is the time and extra space of reversing a singly linked list in groups of k (iteratively)?
- A.
O(n log n) time
- B.
O(n) space
- 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 and extra space of reversing a singly linked list in groups of k (iteratively)?
O(n log n) time
O(n) space
Sign up free to see the answer and a step-by-step explanation.
O(nk) time
O(n) time and O(1) space