Idiot-maker

  :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2018年12月25日

摘要: https://leetcode.com/problems/bitwise-and-of-numbers-range/ 解题思路: 先硬来,超时。 看大神的解法,结论是这道题其实就是要找m和n的bit common prefix。而不需要从m一直算到n。 The hardest part of th 阅读全文
posted @ 2018-12-25 22:39 NickyYe 阅读(211) 评论(0) 推荐(0) 编辑

摘要: https://leetcode.com/problems/rotate-array/ Given an array, rotate the array to the right by k steps, where k is non-negative. Example 1: Example 2: N 阅读全文
posted @ 2018-12-25 00:36 NickyYe 阅读(118) 评论(0) 推荐(0) 编辑