Skip to content

Commit 20714ed

Browse files
authored
Updated 0075-sort-colors.md !
1 parent 26f42dd commit 20714ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dsa-solutions/lc-solutions/0000-0099/0075-sort-colors.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ This problem is a variation of the popular Dutch National flag algorithm.
5252

5353
The steps will be the following:
5454

55-
- First, we will run a loop that will continue until mid <= high.
55+
- First, we will run a loop that will continue until `mid <= high.`
5656
- There can be three different values of mid pointer i.e. arr[mid]
5757
- 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.
5858
- 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

Comments
 (0)