Stay Hungry,Stay Foolish!

摘要: 80. 删除有序数组中的重复项 II https://leetcode.cn/problems/remove-duplicates-from-sorted-array-ii/description/?envType=study-plan-v2&envId=top-interview-150 思路 l 阅读全文
posted @ 2024-03-02 23:57 lightsong 阅读(1) 评论(0) 推荐(0) 编辑
摘要: D - Diversity of Scores https://atcoder.jp/contests/abc343/tasks/abc343_d 思路 准备两个map 第一个存储, 每个分数作为key, 以及 得此分数的 运动员列表 作为value 这样,可以非常快速统计出某一时刻 所有分数总数。 阅读全文
posted @ 2024-03-02 23:46 lightsong 阅读(9) 评论(0) 推荐(0) 编辑
摘要: C - 343 https://atcoder.jp/contests/abc343/tasks/abc343_c 思路 先找出最大三次方数,次数小于或者等于 n, 参考: 在三次方根的可能范围内,使用二分查找法,定位最大的三次方根 https://www.cnblogs.com/Ghost-Kni 阅读全文
posted @ 2024-03-02 23:41 lightsong 阅读(6) 评论(0) 推荐(0) 编辑
Life Is Short, We Need Ship To Travel