Tiger's leetcode solution

Tuesday, October 22, 2013

50. Pow(x, n) -M

›
Q: Implement pow( x , n ). A: ----------4th pass---------Iterative way ------------ public class Solution { public double pow(doub...
Monday, October 21, 2013

Anagrams

›
Q: Given an array of strings, return all groups of strings that are anagrams. Note: All inputs will be in lower-case. For example: Inpu...

Multiply Strings

›
Q: Given two numbers represented as strings, return multiplication of the numbers as a string. Note: The numbers can be arbitrarily large ...

42. Trapping Rain Water --H !!!!!老毛病,第一个方法不太对

›
Given  n  non-negative integers representing an elevation map where the width of each bar is  1 , compute how much water it can trap after r...
2 comments:
Sunday, October 20, 2013

First Missing Positive

›
Q: Given an unsorted integer array, find the first missing positive integer. For example, Given [1,2,0] return 3 , and [3,4,-1,1] retu...

40. Combination Sum II --- M

›
Given a collection of candidate numbers ( candidates ) and a target number ( target ), find all unique combinations in  candidates  where th...

39. Combination Sum ---M

›
Given an array of  distinct  integers  candidates  and a target integer  target , return  a list of all  unique combinations  of  candidates...
‹
›
Home
View web version

About Me

Tiger
View my complete profile
Powered by Blogger.