Skip to content

Commit 76774eb

Browse files
authored
Improved task 2226.
1 parent fdc632a commit 76774eb

File tree

1 file changed

+5
-0
lines changed
  • src/test/java/g2201_2300/s2226_maximum_candies_allocated_to_k_children

1 file changed

+5
-0
lines changed

src/test/java/g2201_2300/s2226_maximum_candies_allocated_to_k_children/SolutionTest.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,9 @@ void maximumCandies() {
1515
void maximumCandies2() {
1616
assertThat(new Solution().maximumCandies(new int[] {2, 5}, 11), equalTo(0));
1717
}
18+
19+
@Test
20+
void maximumCandies3() {
21+
assertThat(new Solution().maximumCandies(new int[] {1, 2, 3, 4, 10}, 5), equalTo(3));
22+
}
1823
}

0 commit comments

Comments
 (0)