Question DSA-TP-0054
MediumReversing a string in place with two pointers takes how much extra space?
- A.
O(n²)
- 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
Two Pointers and Sliding Window question
Reversing a string in place with two pointers takes how much extra space?
O(n²)
O(n)
Sign up free to see the answer and a step-by-step explanation.
O(1)
O(log n)