We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 26f42dd commit 20714edCopy full SHA for 20714ed
dsa-solutions/lc-solutions/0000-0099/0075-sort-colors.md
@@ -52,7 +52,7 @@ This problem is a variation of the popular Dutch National flag algorithm.
52
53
The steps will be the following:
54
55
-- First, we will run a loop that will continue until mid <= high.
+- First, we will run a loop that will continue until `mid <= high.`
56
- There can be three different values of mid pointer i.e. arr[mid]
57
- If arr[mid] == 0, we will swap arr[low] and arr[mid] and will increment both low and mid. Now the subarray from index 0 to (low-1) only contains 0.
58
- If arr[mid] == 1, we will just increment the mid pointer and then the index (mid-1) will point to 1 as it should according to the rules.
0 commit comments