Skip to content

Commit 69877ba

Browse files
fixed formatting issues
1 parent 61a2583 commit 69877ba

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/main/java/com/thealgorithms/misc/Sort012D.java

+7-7
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,16 @@
33
import java.util.Scanner;
44

55
/**
6-
* The array is divided into four sections:
7-
* a[1..Lo-1] zeroes
8-
* a[Lo..Mid-1] ones
9-
* a[Mid..Hi] unknown
10-
* a[Hi+1..N] twos
11-
*
6+
* The array is divided into four sections:
7+
* a[1..Lo-1] zeroes
8+
* a[Lo..Mid-1] ones
9+
* a[Mid..Hi] unknown
10+
* a[Hi+1..N] twos
11+
*
1212
* If array [mid] = 0, then swap array [mid] with array [low] and increment both pointers once.
1313
* If array [mid] = 1, then no swapping is required. Increment mid pointer once.
1414
* If array [mid] = 2, then we swap array [mid] with array [high] and decrement the high pointer once.
15-
*
15+
*
1616
* For more information on the Dutch national flag algorithm refer
1717
* https://en.wikipedia.org/wiki/Dutch_national_flag_problem
1818
*/

0 commit comments

Comments
 (0)