HiTiktokrefugee!开始流行中国话

来提每日一题 2025-01-15 15:02:12
tiktok tiktokrefugee 北美求职 程序员 每天59秒拿下每日一题 创作灵感 LeetCode 转码 中国话 国区每日一题今日思路(.cn): 二分查找。将数组排序,二分搜索找到第一个不小于k的下标,位于其之前的所有元素需要删除。 Binary search. Sort the array, then use binary search to find the first index where the value is not less than k. All elements before the index need to be deleted. 国际站每日一题今日思路(.com): 模拟。 数据限制只有50,且是一个排列;使用数组统计元素是否出现,每次移动至多引入两个公共数字,分别检查其是否位于另一数组。 Simulation. The data constraint is 50, and it is a permutation. Use an array(or a HashSet) to track whether elements have appeared. Each index can introduce at most two common numbers; check whether each of them exists in the other array.

0 阅读:26

评论列表

Yuri ·

Yuri ·

1
2025-01-15 17:08

也是国际化上了

来提每日一题

来提每日一题

感谢大家的关注