Question DSA-TP-0060
MediumHow many passes does the 'move zeros to the end' two-pointer method make?
- A.
One pass
- B.
log n passes
- 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
How many passes does the 'move zeros to the end' two-pointer method make?
One pass
log n passes
Sign up free to see the answer and a step-by-step explanation.
Two passes always
n passes