摘要:
Given two integers L and R, find the count of numbers in the range [L, R] (inclusive) having a prime number of set bits in their binary representation 阅读全文
阅读排行榜
[LeetCode] 581. Shortest Unsorted Continuous Subarray_Easy tag: Sort, Stack
2018-08-20 01:37 by Johnson_强生仔仔, 203 阅读, 收藏,
摘要:
Given an integer array, you need to find one continuous subarray that if you only sort this subarray in ascending order, then the whole array will be 阅读全文
[LeetCode] 172. Factorial Trailing Zeroes_Easy tag: Math
2018-08-16 10:46 by Johnson_强生仔仔, 203 阅读, 收藏,
摘要:
Given an integer n, return the number of trailing zeroes in n!. Example 1: Example 2: Note: Your solution should be in logarithmic time complexity. 思路 阅读全文
[LeetCode] 189. Rotate Array_Easy tag: Array
2019-05-09 11:16 by Johnson_强生仔仔, 202 阅读, 收藏,
摘要:
Given an array, rotate the array to the right by k steps, where k is non-negative. Example 1: Example 2: Note: Try to come up as many solutions as you 阅读全文
[LeetCode] 162. Find Peak Element(852. Peak Index in a Mountain Array)_Medium tag: Binary Search
2018-08-29 11:39 by Johnson_强生仔仔, 201 阅读, 收藏,
摘要:
A peak element is an element that is greater than its neighbors. Given an input array nums, where nums[i] ≠ nums[i+1], find a peak element and return 阅读全文
浙公网安备 33010602011771号