LeetCode 1431. Kids With the Greatest Number of Candies Java Solution
Problem
Kids With the Greatest Number of Candies - LeetCode
Approach
Algorithm
First, find the maximum value in the given array.
Traverse each element in the array, and for each kid, check if adding the extra candies makes their candy count greate...