Skip to content
RED SAG Skills
hard20 pts · first answer countsarraystwo-pointerssorting

Dutch flag: when mid must not advance

In the Dutch national flag algorithm, after swapping a[mid] with a[high] (because a[mid] was 2), why do you decrease high but not increase mid?

Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions