摘要:
题目: Implement int sqrt(int x). Compute and return the square root of x. 链接: http://leetcode.com/problems/sqrtx/ 题解: 求平方根。 二分法, Time Complexity - O(log 阅读全文
posted @ 2015-04-18 00:12
YRB
阅读(560)
评论(0)
推荐(0)
摘要:
题目: Given an array of words and a length L, format the text such that each line has exactly L characters and is fully (left and right) justified. You 阅读全文
posted @ 2015-04-18 00:09
YRB
阅读(453)
评论(0)
推荐(0)
摘要:
题目: Given two binary strings, return their sum (also a binary string). For example,a = "11"b = "1"Return "100". 链接: http://leetcode.com/problems/add-b 阅读全文
posted @ 2015-04-18 00:08
YRB
阅读(413)
评论(0)
推荐(0)
摘要:
题目: Given a non-negative number represented as an array of digits, plus one to the number. The digits are stored such that the most significant digit 阅读全文
posted @ 2015-04-18 00:07
YRB
阅读(305)
评论(0)
推荐(0)

浙公网安备 33010602011771号