摘要:
Implementint sqrt(int x).Compute and return the square root ofx.Hide TagsMathBinary Search思路:整体上用2分比逐个比较强。首先,给出一个错误的版本:错误之处在于红色部分,当mid较大时,mid*mid会超过IN... 阅读全文
posted @ 2015-03-10 11:35
穆穆兔兔
阅读(147)
评论(0)
推荐(0)
摘要:
Given an array of words and a lengthL, format the text such that each line has exactlyLcharacters and is fully (left and right) justified.You should p... 阅读全文
posted @ 2015-03-10 10:23
穆穆兔兔
阅读(156)
评论(0)
推荐(0)

浙公网安备 33010602011771号