diff --git a/E_1431_KidsWiththeGreatestNumberofCandies.java b/E_1431_KidsWiththeGreatestNumberofCandies.java new file mode 100644 index 0000000..b6dcb62 --- /dev/null +++ b/E_1431_KidsWiththeGreatestNumberofCandies.java @@ -0,0 +1,17 @@ +public class Solution { + public List kidsWithCandies(int[] candies, int extraCandies) { + List donen = new ArrayList<>(); + int max=0; + for(int i=0;imax) + max=candies[i]; + } + for(int i=0;i=max) + donen.add(true); + else + donen.add(false); + } + return donen; + } +} \ No newline at end of file