Tiger's leetcode solution
Tuesday, May 3, 2016
310. Minimum Height Trees -------------M !!!!!!!!
›
For a undirected graph with tree characteristics, we can choose any node as the root. The result graph is then a rooted tree. Among all poss...
Friday, April 22, 2016
334. Increasing Triplet Subsequence - M 看smart 解法
›
Q: Given an unsorted array return whether an increasing subsequence of length 3 exists or not in the array. Formally the function should...
344. Reverse String E
›
Q: Write a function that takes a string as input and returns the string reversed. Example: Given s = "hello", return "ol...
337. House Robber III
›
The thief has found himself a new place for his thievery again. There is only one entrance to this area, called root . Besides the root , ...
Thursday, April 21, 2016
338. Counting Bits - M
›
Given a non negative integer number num . For every numbers i in the range 0 ≤ i ≤ num calculate the number of 1's in their binary ...
342. Power of Four
›
Q: Given an integer (signed 32 bits), write a function to check whether it is a power of 4. Example: Given num = 16, return true. Given...
Wednesday, April 20, 2016
343. Integer Break
›
Q: Given a positive integer n , break it into the sum of at least two positive integers and maximize the product of those integers. Ret...
‹
›
Home
View web version