摘要:
/** * 55. Jump Game * https://leetcode.com/problems/jump-game/description/ * */ class Solution { fun canJump(nums: IntArray): Boolean { //method 1 /*v 阅读全文
摘要:
/** * 860. Lemonade Change * https://leetcode.com/problems/lemonade-change/description/ * */ class Solution { //使用贪心,策略是每次找钱选择大面额,尽量保留5元的 fun lemonade 阅读全文