LeetCode 休闲计划
老年退役选手的 LeetCode 休闲之旅
前言
不知不觉两年多的大学时光悄然流逝,浑浑噩噩的状态似乎从来没有离开过自己。
这两年刷题似乎一直是常态。在退役之后的现在,深感有些东西一段时间没有接触,很容易就变得陌生,遂萌生了刷 LeetCode 的想法,不知这一次能维持多久,谨以此记录来不时地警醒自己。
—— 记于2018年寒假
LeetCode之旅
一开始的计划是先不考虑tag,把题目限制在 1~200 题,刷题的顺序是按照难度(Easy-Medium-Hard),题号(1~200)。
结果一开始就纠结要用c++写还是用java,考虑到主要是为了熟悉算法,最后还是选择了比较顺手的c++
[LeetCode] 1. Two Sum(2018-02-12 23:45)
[LeetCode] 7. Reverse Integer(2018-02-13 00:58)
[LeetCode] 9. Palindrome Number(2018-02-14 01:12)
[LeetCode] 13. Roman to Integer(2018-02-14 01:46)
[LeetCode] 14. Longest Common Prefix(2018-02-15 01:52)
[LeetCode] 20. Valid Parentheses(2018-02-17 01:41)
[LeetCode] 21. Merge Two Sorted Lists(2018-02-19 02:54)
[LeetCode] 26. Remove Duplicates from Sorted Array(2018-02-20 02:12)
[LeetCode] 27. Remove Element(2018-02-20 02:18)
[LeetCode] 28. Implement strStr()(2018-02-20 02:42)
[LeetCode] 35. Search Insert Position(2018-02-21 00:53)
[LeetCode] 38. Count and Say(2018-02-21 01:13)
[LeetCode] 53. Maximum Subarray(2018-02-22 02:19)
[LeetCode] 58. Length of Last Word(2018-02-23 02:22)
[LeetCode] 66. Plus One(2018-02-24 01:58)
[LeetCode] 67. Add Binary(2018-02-25 01:09)
[LeetCode] 69. Sqrt(x)(2018-02-25 01:27)
[LeetCode] 70. Climbing Stairs(2018-02-25 01:35)
[LeetCode] 83. Remove Duplicates from Sorted List(2018-02-25 01:43)
[LeetCode] 88. Merge Sorted Array(2018-02-25 01:54)
[LeetCode] 100. Same Tree(2018-02-25 02:00)
[LeetCode] 101. Symmetric Tree(2018-02-26 00:51)
[LeetCode] 104. Maximum Depth of Binary Tree(2018-02-26 00:53)
[LeetCode] 107. Binary Tree Level Order Traversal II(2018-02-27 01:22)
[LeetCode] 108. Convert Sorted Array to Binary Search Tree(2018-02-27 01:28)
[LeetCode] 118. Pascal's Triangle(2018-02-27 01:37)
[LeetCode] 119. Pascal's Triangle II(2018-02-27 01:41)
[LeetCode] 121. Best Time to Buy and Sell Stock(2018-02-27 01:44)
[LeetCode] 122. Best Time to Buy and Sell Stock II(2018-02-28 01:38)
[LeetCode] 110. Balanced Binary Tree(2018-03-01 02:05)
[LeetCode] 111. Minimum Depth of Binary Tree(2018-03-02 02:29)
[LeetCode] 112. Path Sum(2018-03-05 01:06)
[LeetCode] 125. Valid Palindrome(2018-03-05 01:19)
[LeetCode] 136. Single Number(2018-03-06 01:34)
[LeetCode] 141. Linked List Cycle(2018-03-06 01:47)
[LeetCode] 155. Min Stack(2018-03-08 01:19)
[LeetCode] 160. Intersection of Two Linked Lists(2018-03-25 21:52)
[LeetCode] 167. Two Sum II - Input array is sorted(2018-03-26 14:36)
LeetCode 休闲计划的更多相关文章
- leetcode计划(二)——ps:复习面试题计划+锻炼计划
5.24周日 下周是新的一周,发布任务 一.leetcode计划题目:300,416,494,474(前四个动态规划)(plus:860),232,225,155(后三个栈) 建议之后可以先做:cs- ...
- Leetcode 刷题计划
Two Sum 21.4% Medium Given an array of integers, return indices of the two numbers such that t ...
- Leetcode 计划
如何正确高效地使用LeetCode? LeetCode按照怎样的顺序来刷题比较好? LeetCode 题目总结/分类 Leetcode 简略题解 - 共567题 500. Keyboard Row [ ...
- leetcode计划
5.17 星期日,应完成的下周leetcode题目:279,300,1143,72,(前4个动态规划),104,110,543(后三个关于树)(https://cyc2018.github.io/CS ...
- leetcode每日刷题计划-简单篇day13
Num 169 先码,回头再说,摩尔算法... tle了 class Solution { public: int majorityElement(vector<int>& num ...
- leetcode每日刷题计划-简单篇day12
Num 125 验证回文串 Valid Palindrome 非常有收货的一道题嘻嘻嘻,本来是考试期间划水挑的题,坑点有点多 第一个是注意对temp1和temp2中途更新的判断 第二个是字符串频繁的作 ...
- leetcode每日刷题计划-简单篇day11
Num 121 买卖股票的最佳时期 Best Time to Buy and Sell Stock class Solution { public: int maxProfit(vector<i ...
- leetcode每日刷题计划-简单篇day10
跳题,不熟悉的留到周末再做. 保持冷静,不信画饼. num 100 相同的树 Same Tree 做法可能不是特别简洁,注意一下.最后判断完子树以后,要确定根的数值是一样的 然后在isleaf的判定先 ...
- leetcode每日刷题计划-简单篇day9
Num 38 报数 Count and Say 题意读起来比较费劲..看懂了题还是不难的 注意最后的长度是sz的长度,开始写错写的len 在下次计算的时候len要更新下 说明 直接让char和int进 ...
随机推荐
- JDK并发包中ExecutorCompletionService使用
相信大家都知道,jdk中ExecutorService是并发编程时使用很频繁的接口,并且使用很方便,那么想在有这么一个场景: 一批任务使用线程池处理,并且需要获得结果,但是不关心任务执行结束后输出结果 ...
- double转换为int以及浮点型相加损失精度问题
最近在做支付相关模块的业务,数据库字段却使用的是double类型,其实也行,只要计算不在sql语句中进行,也是没有问题的. 预先的类属性设置的是Double类型,自己算的时候发现小数相加会出现损失精度 ...
- 解决:git使用git push 命令跳出remote: Permission to A denied to B的问题
开始git上传项目,不料,在git push这一步骤发生了错误? remote: Permission to qwe2193066947/firstRepository.git denied to m ...
- SpringMVC之使用Servlet原生API作为参数
SpringMVC的handler接收如下的ServletAPI类型的参数: • HttpServletRequest • HttpServletResponse • HttpSession • ja ...
- [HAOI 2010]订货
Description 题库链接 某公司估计市场在第 \(i\) 个月对某产品的需求量为 \(U_i\) ,已知在第 \(i\) 月该产品的订货单价为 \(d_i\) ,上个月月底未销完的单位产品要付 ...
- .7-浅析express源码之Router模块(3)-app[METHODS]
之前的讨论都局限于use方法,所有方式的请求会被通过,这一节讨论express内部如何处理特殊请求方法. 给个流程图咯~ 分别给出app.METHODS与router.METHODS: // app. ...
- 如何使SpringBoot作为Maven构建的项目的一个子模块
1.问题 一般使用springboot都会引用springboot作为parent,在实际项目中web只是系统模块的一个子集.当然你可以做两个项目来管理,一个项目用来做各种支持包,一个项目专门做web ...
- MyBatis开发Dao层的两种方式(Mapper动态代理方式)
MyBatis开发原始Dao层请阅读我的上一篇博客:MyBatis开发Dao层的两种方式(原始Dao层开发) 接上一篇博客继续介绍MyBatis开发Dao层的第二种方式:Mapper动态代理方式 Ma ...
- 解决myeclipse2017安装后闪退问题
修改myeclipse的配置文件myeclipse.ini: 1.将-vm下面的路径改成自己的jdk的javaw.exe的路径 2.在文档最后加上两条语句: -Dgenuitec.honorDevMo ...
- 洛谷P3924 康娜的线段树(期望 前缀和)
题意 题目链接 Sol 思路就是根据期望的线性性直接拿前缀和算贡献.. 这题输出的时候是不需要约分的qwq 如果你和我一样为了AC不追求效率的话直接#define int __int128就行了.. ...