摘要:
第一题 题目链接:https://leetcode-cn.com/problems/cong-wei-dao-tou-da-yin-lian-biao-lcof/ 个人题解:开一个数组,从头到尾遍历,然后反转数组即可 代码: class Solution { public: vector<int> 阅读全文
posted @ 2022-05-04 11:44
黑VS白-清墨
阅读(27)
评论(0)
推荐(0)
摘要:
题目链接:https://leetcode-cn.com/problems/find-the-winner-of-the-circular-game/ 个人题解: 队列模拟(会比较慢) 数学递归,迭代节省空间(对比约瑟夫环) 点击查看代码 class Solution { public: int f 阅读全文
posted @ 2022-05-04 11:04
黑VS白-清墨
阅读(21)
评论(0)
推荐(0)

浙公网安备 33010602011771号