Skip to content

Commit c022220

Browse files
committed
Added tests
1 parent c5d4d4b commit c022220

File tree

1 file changed

+27
-0
lines changed
  • src/test/java/g1801_1900/s1815_maximum_number_of_groups_getting_fresh_donuts

1 file changed

+27
-0
lines changed

src/test/java/g1801_1900/s1815_maximum_number_of_groups_getting_fresh_donuts/SolutionTest.java

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,31 @@ void maxHappyGroups2() {
1616
assertThat(
1717
new Solution().maxHappyGroups(4, new int[] {1, 3, 2, 5, 2, 2, 1, 6}), equalTo(4));
1818
}
19+
20+
@Test
21+
void maxHappyGroups3() {
22+
assertThat(
23+
new Solution()
24+
.maxHappyGroups(
25+
7,
26+
new int[] {
27+
287773481, 815094798, 356732984, 644469322, 543193620,
28+
903158817, 274116865, 395252956, 363839119, 365378492,
29+
122313059, 312690039, 252532812
30+
}),
31+
equalTo(9));
32+
}
33+
34+
@Test
35+
void maxHappyGroups4() {
36+
assertThat(
37+
new Solution()
38+
.maxHappyGroups(
39+
9,
40+
new int[] {
41+
3, 1, 3, 3, 5, 6, 1, 1, 9, 10, 3, 3, 3, 1, 1, 3, 3, 3, 19, 20,
42+
1, 3, 3, 3, 3, 1, 1, 3, 3, 30
43+
}),
44+
equalTo(9));
45+
}
1946
}

0 commit comments

Comments
 (0)