这篇文章是关于LeetCode Top 100 Liked Questions 的 专栏记录,其中部分题目可能包括解题思路和多种优化解法。我把自己的思路都记录在这里,如果你看见了,请记得点个赞吧,蟹蟹【手动笑脸】。 1、Two Sum Given an array of integers, return indices of the two numbers such that they add up to a specific ...
1、Two Sum 2、Add Two Numbers 3、Longest Substring Without Repeating Characters 4. Median of Two Sorted Arrays 5、Longest Palindromic Substring 11. Container With Most Water 15. 3Sum 16. 3Sum Closest 17. Letter Combinations of a Phone Number 19. Remove Nth Node From End of List 20. Valid ...
LeetCode Top 100 Liked Questions 438. Find All Anagrams in a String (Java版; Medium) 题目描述 Given a string s and a non-empty string p, find all the start indices of p's anagrams in s. Strings consists of lowercase English letters only and the length of both strings s and p will ...
回头看第一篇文章,还算有一些收获的。 传送门:从心出发-刷leetcode写给5年后的自己,原计划用3个月的时间,回头来看第1轮100题用了刚好30天。 二、刷题方法及做法 自2020年1月22日开始,到2020年2月21日至,刷了top-100-liked-questions中的100道题目。普遍刷题的方法有两种: 1、“真刷题”:为刷题而刷题...
LeetCode 指南语言: Java 说明: 每道题在代码头部都添加了我的解题思路和批注,Eg: /*** * 287. Find the Duplicate Number * 题意:n+1个数属于[1~n],找出重复的那个数 * 难度:Medium * 分类:Array, Two Pointers, Binary Search * 思路:如果nums[i]不在对应位置,则和对应位置交换。如果对应位置上...
/LeetCodeAnimation Demonstrate all the questions on LeetCode in the form of animation.(用动画的形式呈现解LeetCode题目的思路) 48.6k Java 01/10 3 /advanced-java 😮 互联网 Java 工程师进阶知识完全扫盲:涵盖高并发、分布式、高可用、微服务、海量数据处理等领域知识,后端同学必看,前端同学也可学习 38.2...
本书为 LeetCode 官方推出的经典面试题目清单,算法难度为中级,包括数组和字符串、链表、 树和图、回溯算法、排序和搜索、 动态规划、设计问题、数学、其他九部分内容。这些练习题能够助你温习知识点,进一步沉淀自己的知识。 适合人群 正在学习中级算法的进阶学习者 ...
语言|star|项目名称|描述|创建时间|更新时间 || Java|87114|GrowingGit/GitHub-Chinese-Top-Charts|:cn: GitHub中文排行榜,各语言分设「软件 资料」榜单,精准定位中文好项目。各取所需,高效学习。|2019/9/5|2024/3/31 Java|74888|MisterBooo/LeetCodeAnimation|Demonstrate all the questions on LeetCode in the...
https://leetcode.com/problems/number-of-islands/,Numberof Islands,3 https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iv/,BestTime to Buy and Sell Stock IV,3 11. 1 Best Time to Buy and Sell Stock You are given an arraypriceswhereprices[i]is the price of a given stock...