上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 23 下一页
摘要: Problem : Given an integer (signed 32 bits), write a function to check whether it is a power of 4. Example 1: Example 2: Follow up: Could you solve it 阅读全文
posted @ 2020-04-07 11:29 littledy 阅读(74) 评论(0) 推荐(0)
摘要: Problem : You are playing the following Nim Game with your friend: There is a heap of stones on the table, each time one of you take turns to remove 1 阅读全文
posted @ 2020-04-06 23:23 littledy 阅读(103) 评论(0) 推荐(0)
摘要: Problem : You are a product manager and currently leading a team to develop a new product. Unfortunately, the latest version of your product fails the 阅读全文
posted @ 2020-04-06 22:58 littledy 阅读(99) 评论(0) 推荐(0)
摘要: Problem : Write a program to check whether a given number is an ugly number. Ugly numbers are positive numbers whose prime factors only include 2, 3, 阅读全文
posted @ 2020-04-06 22:22 littledy 阅读(82) 评论(0) 推荐(0)
摘要: Problem : 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 soluti 阅读全文
posted @ 2020-04-06 18:50 littledy 阅读(71) 评论(0) 推荐(0)
摘要: Problem : Reverse bits of a given 32 bits unsigned integer. Example 1: Example 2: Note: 思路 : Solution (C++) : 性能 : Runtime: 4 ms Memory Usage: 6.7 MB 阅读全文
posted @ 2020-04-06 16:56 littledy 阅读(104) 评论(0) 推荐(0)
摘要: Problem : Given an integer n, return the number of trailing zeroes in n!. Example 1: Example 2: Note: Your solution should be in logarithmic time comp 阅读全文
posted @ 2020-04-06 15:21 littledy 阅读(96) 评论(0) 推荐(0)
摘要: Problem : Given a positive integer, return its corresponding column title as appear in an Excel sheet. For example: Example 1: Example 2: Example 3: 思 阅读全文
posted @ 2020-04-06 11:48 littledy 阅读(100) 评论(0) 推荐(0)
摘要: Problem : Given an array of integers that is already sorted in ascending order, find two numbers such that they add up to a specific target number. Th 阅读全文
posted @ 2020-04-05 23:51 littledy 阅读(119) 评论(0) 推荐(0)
摘要: Problem : 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 a 阅读全文
posted @ 2020-04-05 23:43 littledy 阅读(92) 评论(0) 推荐(0)
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 23 下一页