摘要:
Implement pow(x, n), which calculates x raised to the power n (xn). Example 1: Example 2: Example 3: Note: -100.0 < x < 100.0 n is a 32-bit signed int 阅读全文
posted @ 2018-11-02 11:45
茫茫碧落
阅读(162)
评论(0)
推荐(0)
摘要:
我现在主要学的python,会一点c++,这两个语言可以说是leetcode上面最好做题目的语言了,c++有现成的stl可以用,python由于语言特性的问题自然是很方便; 个人感觉做算法题主要是思路,语言并不重要 用python做题还有一点“好处”,只要算法复杂度不对基本不能通过,其他语言可能还会 阅读全文
posted @ 2018-11-02 11:14
茫茫碧落
阅读(657)
评论(0)
推荐(0)
摘要:
Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in or 阅读全文
posted @ 2018-11-02 10:52
茫茫碧落
阅读(119)
评论(0)
推荐(0)
摘要:
Implement strStr(). Return the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack. Example 1: Example 2: Cla 阅读全文
posted @ 2018-11-02 10:18
茫茫碧落
阅读(117)
评论(0)
推荐(0)
摘要:
https://blog.csdn.net/fx677588/article/details/72357389 https://blog.csdn.net/hyqsong/article/details/49429859 前面的两种是递归和非递归的实现,图文并茂,写的很好 后面的方法二和三可以拓展思 阅读全文
posted @ 2018-11-02 09:50
茫茫碧落
阅读(112)
评论(0)
推荐(0)

浙公网安备 33010602011771号