前言 最近有朋友问我怎么没有更新文章了,因为最近有空的时候都在刷 LeetCode,零零星星刷了快 2 个月了,也累积了不少题目了,所以最近打算把做的几百道题归类,总结一下。所有题目的代码在github.com/halfrost/Le…,每道题都有测试用例和测试代码。 Linked List 的 Tips: 巧妙的构造虚拟头结点。可以使遍历处理逻辑更加统一
2 本文链接:https://blog.csdn.net/liujiaqi12345/article/details/88357041 3 Leetcode JAVA 题解: https:///mJackie/leetcode 4 自己日常刷题经过是这样的: 5 6 拿到题目,看一眼Difficulty,然后自己思考一下解题思路。如果解不出来,就记下在哪里卡住了,难点在哪。 7 如果对应的题目有Solution,就看Solution...
1、数据结构 数据结构研究的内容就是如何按一定的逻辑结构,把数据组织起来,一般学习算法都是先从数据结...
Personal Blog : https://blog.csdn.net/ZYZMZM_?orderby=UpdateTime 初级算法 - 题目清单 Array IDTitleDifficultyBlog 26 Remove Duplicates from Sorted Array Easy C C++ 122 Best Time to Buy and Sell Stock II Easy C C++ 189 Rotate Array Easy C C++ 217 Contains Duplicate Easy C C++ 136...
CategoryDifficultyalgorithmsEasy (51.72%)Tagsdynamic-programmingCompaniesadobe|appleYou are climbing a ...
Time:2019/4/15 Title: Design Circular Deque Difficulty: Medium Author: 小鹿 题目:Design Circular Deque Design your implementation of the circular double-ended queue (deque). Your implementation should sup...Leetcode641.Design Circular Deque设计循环双端队列 设计实现双端队列。 你的实现需要支持以下...
证明1: https://blog.csdn.net/yo_bc/article/details/75322370 证明2: https://www.cnblogs.com/dilthey/p/7565206.html 2-SAT Template: https://github.com/JunBinLiang/Competitive-Coding/blob/master/2-SAT.cpp https://cp-algorithms.com/graph/2SAT.html#toc-tgt-2空...
2本文链接:https://blog.csdn.net/liujiaqi12345/article/details/883570413Leetcode JAVA 题解: https:///mJackie/leetcode4自己日常刷题经过是这样的:56拿到题目,看一眼Difficulty,然后自己思考一下解题思路。如果解不出来,就记下在哪里卡住了,难点在哪。7如果对应的题目有Solution,就看Solution,没有的话就点...
LeetCode : https://leetcode.com/Programming Language : C++#TitleSolutionDifficulty 1 Two Sum 1 Two Sum Easy 2 Add Two Numbers 2 Add Two Numbers Medium 3 Longest Substring Without Repeating Characters 3 Longest Substring Without Repeating Characters Medium 4 Median of Two Sorted Arrays 4 Median ...