Leetcode

leetcode 2251 花期内花的数目(2023.9.28) 题目 给你一个下标从 0 开始的二维整数数组 flowers ,其中 flowers[i] = [starti, endi] 表示第 i 朵花的 花期 从 starti 到 endi (都 包含)。同时给你一个下标从 0 开始大小为 n 的整数数组 people ,people[i] 是第 i 个人来看花的时间。 [Read More]

记录一次面试lru

面试某家公司居然让我写LRU,写了40分钟才写出来orz我好菜。然后交给面试官的版本有bug。 面试后去leetcode提交又debug了下,可以通过了。 leetcode地址:https://leetcode.cn/problems/lru-cache/ [Read More]