leetcode_easy_array

problem

​1431. Kids With the Greatest Number of Candies​

理解题意:添加一定数量的糖果,计算能够得到最多糖果的数目。

solution #1:

code:

 

参考

1. ​​leetcode_1431. Kids With the Greatest Number of Candies​​;