上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 28 下一页

2015年5月29日

摘要: 题目:Given an array of non-negative integers, you are initially positioned at the first index of the array.Each element in the array represents your max... 阅读全文
posted @ 2015-05-29 21:35 承续缘 阅读(198) 评论(0) 推荐(0) 编辑
摘要: 题目:Given an array of non-negative integers, you are initially positioned at the first index of the array.Each element in the array represents your max... 阅读全文
posted @ 2015-05-29 19:50 承续缘 阅读(220) 评论(0) 推荐(0) 编辑
摘要: 题目:Implementint sqrt(int x).Compute and return the square root ofx.代码:class Solution {public: int mySqrt(int x) { if (x mid )... 阅读全文
posted @ 2015-05-29 15:16 承续缘 阅读(450) 评论(0) 推荐(0) 编辑
摘要: 题目:Implement pow(x,n).代码:class Solution {public: double myPow(double x, int n) { double ret = Solution::positivePow(fabs(x), ... 阅读全文
posted @ 2015-05-29 11:23 承续缘 阅读(328) 评论(0) 推荐(0) 编辑
摘要: 题目:Given a 2D board and a word, find if the word exists in the grid.The word can be constructed from letters of sequentially adjacent cell, where "adj... 阅读全文
posted @ 2015-05-29 11:17 承续缘 阅读(208) 评论(0) 推荐(0) 编辑

2015年5月28日

摘要: 题目:Write a program to solve a Sudoku puzzle by filling the empty cells.Empty cells are indicated by the character'.'.You may assume that there will be... 阅读全文
posted @ 2015-05-28 21:46 承续缘 阅读(170) 评论(0) 推荐(0) 编辑
摘要: 题目:Givennpairs of parentheses, write a function to generate all combinations of well-formed parentheses.For example, givenn= 3, a solution set is:"(((... 阅读全文
posted @ 2015-05-28 16:17 承续缘 阅读(168) 评论(0) 推荐(0) 编辑
摘要: 题目:Given a collection of candidate numbers (C) and a target number (T), find all unique combinations inCwhere the candidate numbers sums toT.Each numb... 阅读全文
posted @ 2015-05-28 15:27 承续缘 阅读(184) 评论(0) 推荐(0) 编辑
摘要: 题目:Given a set of candidate numbers (C) and a target number (T), find all unique combinations inCwhere the candidate numbers sums toT.Thesamerepeated ... 阅读全文
posted @ 2015-05-28 14:47 承续缘 阅读(248) 评论(0) 推荐(0) 编辑
摘要: 题目:Given a string containing only digits, restore it by returning all possible valid IP address combinations.For example:Given"25525511135",return["25... 阅读全文
posted @ 2015-05-28 08:48 承续缘 阅读(240) 评论(0) 推荐(0) 编辑
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 28 下一页

导航