摘要:
地址:https://leetcode-cn.com/problems/na-ying-bi/ <?php /** * Class Solution * 桌上有 n 堆力扣币,每堆的数量保存在数组 coins 中。我们每次可以选择任意一堆,拿走其中的一枚或者两枚,求拿完所有力扣币的最少次数。 示例 阅读全文
posted @ 2020-09-17 16:42
花花妹子。
阅读(108)
评论(0)
推荐(0)
摘要:
地址:https://leetcode-cn.com/problems/delete-middle-node-lcci/ <?php /** * 实现一种算法,删除单向链表中间的某个节点(即不是第一个或最后一个节点),假定你只能访问该节点。 * * * * 示例: * * 输入:单向链表a->b-> 阅读全文
posted @ 2020-09-17 16:31
花花妹子。
阅读(109)
评论(0)
推荐(0)
摘要:
地址:https://leetcode-cn.com/problems/shuffle-the-array/ <?php /** 1470. 重新排列数组 给你一个数组 nums ,数组中有 2n 个元素,按 [x1,x2,...,xn,y1,y2,...,yn] 的格式排列。 请你将数组按 [x1 阅读全文
posted @ 2020-09-17 15:54
花花妹子。
阅读(147)
评论(0)
推荐(0)
摘要:
地址:https://leetcode-cn.com/problems/kids-with-the-greatest-number-of-candies/ <?php /** 1431. 拥有最多糖果的孩子 给你一个数组 candies 和一个整数 extraCandies ,其中 candies[ 阅读全文
posted @ 2020-09-17 15:41
花花妹子。
阅读(102)
评论(0)
推荐(0)
摘要:
地址:https://leetcode-cn.com/problems/number-of-good-pairs/ <?php /** * 1512. 好数对的数目 * 给你一个整数数组 nums 。 * * 如果一组数字 (i,j) 满足 nums[i] == nums[j] 且 i < j ,就 阅读全文
posted @ 2020-09-17 15:16
花花妹子。
阅读(117)
评论(0)
推荐(0)


浙公网安备 33010602011771号