摘要: 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)