style: format code (#4212)

close #4204
This commit is contained in:
acbin
2023-06-09 18:52:05 +08:00
committed by GitHub
parent ad03086f54
commit 00282efd8b
521 changed files with 5233 additions and 7309 deletions

View File

@ -16,19 +16,10 @@ public class Mode {
public static void main(String[] args) {
/* Test array of integers */
assert (mode(new int[] {})) == null;
assert Arrays.equals(mode(new int[] { 5 }), new int[] { 5 });
assert Arrays.equals(
mode(new int[] { 1, 2, 3, 4, 5 }),
new int[] { 1, 2, 3, 4, 5 }
);
assert Arrays.equals(
mode(new int[] { 7, 9, 9, 4, 5, 6, 7, 7, 8 }),
new int[] { 7 }
);
assert Arrays.equals(
mode(new int[] { 7, 9, 9, 4, 5, 6, 7, 7, 9 }),
new int[] { 7, 9 }
);
assert Arrays.equals(mode(new int[] {5}), new int[] {5});
assert Arrays.equals(mode(new int[] {1, 2, 3, 4, 5}), new int[] {1, 2, 3, 4, 5});
assert Arrays.equals(mode(new int[] {7, 9, 9, 4, 5, 6, 7, 7, 8}), new int[] {7});
assert Arrays.equals(mode(new int[] {7, 9, 9, 4, 5, 6, 7, 7, 9}), new int[] {7, 9});
}
/*