摘要:
Given an array of integers A and let n to be its length. Assume Bk to be an array obtained by rotating the array A k positions clock-wise, we define a 阅读全文
posted @ 2016-09-13 09:36
LiBlog
阅读(283)
评论(0)
推荐(0)
摘要:
Given a positive integer n and you can do operations as follow: What is the minimum number of replacements needed for n to become 1? Example 1: Exampl 阅读全文
posted @ 2016-09-13 09:15
LiBlog
阅读(272)
评论(0)
推荐(0)
摘要:
Given a binary tree, imagine yourself standing on the right side of it, return the values of the nodes you can see ordered from top to bottom. For exa 阅读全文
posted @ 2016-09-13 07:18
LiBlog
阅读(115)
评论(0)
推荐(0)
摘要:
Given an array of meeting time intervals consisting of start and end times [[s1,e1],[s2,e2],...] (si < ei), find the minimum number of conference room 阅读全文
posted @ 2016-09-13 05:02
LiBlog
阅读(198)
评论(0)
推荐(0)
摘要:
Given a range [m, n] where 0 <= m <= n <= 2147483647, return the bitwise AND of all numbers in this range, inclusive. For example, given the range [5, 阅读全文
posted @ 2016-09-13 03:50
LiBlog
阅读(158)
评论(0)
推荐(0)
摘要:
Write a program to find the nth super ugly number. Super ugly numbers are positive numbers whose all prime factors are in the given prime list primes 阅读全文
posted @ 2016-09-13 01:47
LiBlog
阅读(227)
评论(0)
推荐(0)

浙公网安备 33010602011771号