
习题记录
老夫掐指一算
略略略
展开
-
LeetCode-1的python和c++
LeetCode-1 TwosumGiven an array of integers, return indices of the two numbers such that they add up to a specific target.You may assume that each input would have exactly one solution, and you may ...原创 2019-05-06 15:13:35 · 180 阅读 · 0 评论 -
LeetCode-69
LeetCode-69Implement int sqrt(int x).Compute and return the square root of x, where x is guaranteed to be a non-negative integer.Since the return type is an integer, the decimal digits are truncate...原创 2019-05-06 16:29:23 · 160 阅读 · 0 评论 -
LeetCode-70
LeetCode-70You 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 climb to the top?Note: Given n will be ...原创 2019-05-06 16:52:36 · 159 阅读 · 0 评论