上一页 1 2 3 4 5 6 7 8 ··· 11 下一页
  2015年5月15日
摘要: Implement pow(x, n). 1 class Solution { 2 public: 3 double power(double x, int n) 4 { 5 if (n == 0) 6 return 1; 7 ... 阅读全文
posted @ 2015-05-15 12:27 黄瓜小肥皂 阅读(145) 评论(0) 推荐(0) 编辑
摘要: Given a set of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers sums to T.The same repeate... 阅读全文
posted @ 2015-05-15 11:50 黄瓜小肥皂 阅读(109) 评论(0) 推荐(0) 编辑
  2015年5月14日
摘要: Remove all elements from a linked list of integers that have value val.ExampleGiven: 1 --> 2 --> 6 --> 3 --> 4 --> 5 --> 6, val = 6Return: 1 --> 2 -->... 阅读全文
posted @ 2015-05-14 21:22 黄瓜小肥皂 阅读(98) 评论(0) 推荐(0) 编辑
摘要: Reverse bits of a given 32 bits unsigned integer.For example, given input 43261596 (represented in binary as 00000010100101000001111010011100), return... 阅读全文
posted @ 2015-05-14 20:42 黄瓜小肥皂 阅读(149) 评论(0) 推荐(0) 编辑
摘要: Write a program to find the node at which the intersection of two singly linked lists begins.For example, the following two linked lists:A: ... 阅读全文
posted @ 2015-05-14 19:37 黄瓜小肥皂 阅读(113) 评论(0) 推荐(0) 编辑
  2015年5月13日
摘要: Given an integer n, return the number of trailing zeroes in n!.Note: Your solution should be in logarithmic time complexity. 1 class Solution { 2 publ... 阅读全文
posted @ 2015-05-13 08:05 黄瓜小肥皂 阅读(148) 评论(0) 推荐(0) 编辑
摘要: You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed, the only constraint stopping yo... 阅读全文
posted @ 2015-05-13 07:56 黄瓜小肥皂 阅读(137) 评论(0) 推荐(0) 编辑
摘要: Given a set of distinct integers, nums, return all possible subsets.Note:Elements in a subset must be in non-descending order.The solution set must no... 阅读全文
posted @ 2015-05-13 07:28 黄瓜小肥皂 阅读(115) 评论(0) 推荐(0) 编辑
  2015年5月12日
摘要: Given a string s consists of upper/lower-case alphabets and empty space characters ' ', return the length of last word in the string.If the last word ... 阅读全文
posted @ 2015-05-12 07:49 黄瓜小肥皂 阅读(128) 评论(0) 推荐(0) 编辑
摘要: Given a binary tree, flatten it to a linked list in-place.For example,Given 1 / \ 2 5 / \ \ 3 4 6The flattened t... 阅读全文
posted @ 2015-05-12 07:42 黄瓜小肥皂 阅读(118) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 11 下一页