文件名称:leetcode伪代码-kids-with-the-greatest-number-of-candies:拥有最多糖果的孩子
文件大小:3KB
文件格式:ZIP
更新时间:2024-07-20 13:45:03
系统开源
leetcode伪代码kids-with-the-greatest-number-of-candies 题目解读: 题目来源: 原文: Given the array candies and the integer extraCandies, where candies[i] represents the number of candies that the ith kid has. For each kid check if there is a way to distribute extraCandies among the kids such that he or she can have the greatest number of candies among them. Notice that multiple kids can have the greatest number of candies. 解读: 给一个正整数阵列candies 还有一个正整数extraCandies 对于每个candies[i] 代表第i位小孩所拥有的糖果 results 是一个布林值阵列 对于
【文件预览】:
kids-with-the-greatest-number-of-candies-master
----kidsWithCandies.go(323B)
----README.md(3KB)
----.gitignore(269B)
----kidsWithCandies_test.go(948B)