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 承续缘 阅读(212) 评论(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 承续缘 阅读(229) 评论(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 承续缘 阅读(491) 评论(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 承续缘 阅读(336) 评论(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 承续缘 阅读(218) 评论(0) 推荐(0)

导航