摘要:
Implementint sqrt(int x). Compute and return the square root of x. 逐次逼近 阅读全文
posted @ 2018-09-11 22:15
鸭子船长
阅读(162)
评论(0)
推荐(0)
摘要:
You are climbing a stair case. It takes n steps to reach to the top. Each time you can either climb 1 or 2 steps. In how many distinct ways can you cl 阅读全文
posted @ 2018-09-11 22:05
鸭子船长
阅读(250)
评论(0)
推荐(0)
摘要:
题目描述 Given an absolute path for a file (Unix-style), simplify it. For example,path ="/home/", =>"/home"path ="/a/./b/../../c/", =>"/c" click to show c 阅读全文
posted @ 2018-09-11 21:48
鸭子船长
阅读(341)
评论(0)
推荐(0)
摘要:
Given two words word1 and word2, find the minimum number of steps required to convert word1 to word2. (each operation is counted as 1 step.) You have 阅读全文
posted @ 2018-09-11 21:34
鸭子船长
阅读(258)
评论(0)
推荐(0)
摘要:
题目描述 Given a m x n matrix, if an element is 0, set its entire row and column to 0. Do it in place. click to show follow up. Follow up: Did you use ext 阅读全文
posted @ 2018-09-11 21:07
鸭子船长
阅读(203)
评论(0)
推荐(0)