算法
evo_steven
这个作者很懒,什么都没留下…
展开
-
LeetCode刷题指南
个人做题过程中的一些体会: 1. LeetCode的题库越来越大,对于大多数人来说,没有时间也没有必要把所有题目都做一遍。刷个100题左右应该就差不多了,可以考虑序号为前100多的题目,相对更经典一点。 2. 从AC率高的开始做,难度从简单到中等,先不要做困难的。 3. 尽量不使用IDE,直接在sublime上写代码。 4. 写好代码先不要提交,人工检查一下代码,比如分号是否都有写,ret...原创 2019-02-12 15:16:06 · 487 阅读 · 0 评论 -
Leet Code OJ 1. Two Sum [Difficulty: Easy]
题目: Given 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.Example: Given nums = ...原创 2019-02-12 15:18:48 · 195 阅读 · 0 评论 -
Leet Code OJ 8. String to Integer (atoi) [Difficulty: Easy]
题目: Implement atoi to convert a string to an integer.Hint: Carefully consider all possible input cases. If you want a challenge, please do not see below and ask yourself what are the possible input...原创 2019-02-12 17:33:32 · 195 阅读 · 0 评论