Question DSA-TP-0037
EasyThe Dutch national flag problem sorts an array of 0s, 1s and 2s in one pass. How many pointers does the standard solution use?
- A.
Four
- B.
Two
- 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
The Dutch national flag problem sorts an array of 0s, 1s and 2s in one pass. How many pointers does the standard solution use?
Four
Two
Sign up free to see the answer and a step-by-step explanation.
One
Three (low, mid and high)