摘要:
题目链接:https://www.acwing.com/problem/content/description/86/ 双指针 快慢指针,快指针一次走两步,慢指针一次走一步,如果快指针无法继续前进,没有环; 否则,当快指针与慢指针第一次相遇以后,令快指针等于头结点,快慢指针各自每次走一步,再次相遇的 阅读全文
posted @ 2020-05-08 20:33
NaughtyCoder
阅读(88)
评论(0)
推荐(0)
摘要:
题目链接:https://leetcode cn.com/problems/jian sheng zi ii lcof/ 贪心 阅读全文
posted @ 2020-05-08 19:54
NaughtyCoder
阅读(69)
评论(0)
推荐(0)
摘要:
题目链接:https://leetcode-cn.com/problems/jian-sheng-zi-lcof/ 贪心 class Solution { public: int cuttingRope(int n) { if(n <= 3) return 1 * (n - 1); int res 阅读全文
posted @ 2020-05-08 19:23
NaughtyCoder
阅读(84)
评论(0)
推荐(0)

浙公网安备 33010602011771号