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 的 专栏记录,其中部分题目可能包括解题思路和多种优化解法。我把自己的思路都记录在这里,如果你看见了,请记得点个赞吧,蟹蟹【手动笑脸】。 1、Two Sum Given an array of integers, return indices of the two numbers such that they add up to a specific ...
leetcode top-100-liked-questions刷题总结 一、起因 宅在家中,不知该做点什么。没有很好的想法,自己一直想提升技能,语言基础自不必言,数据结构还算熟悉,算法能力一般。于是乎,就去刷一通题。 刷题平台有很多,我选择了在leetcode进行刷题。回头看第一篇文章,还算有一些收获的。 传送门:从心出发-刷leetcode写给...
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 ...
/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 指南语言: Java 说明: 每道题在代码头部都添加了我的解题思路和批注,Eg: /*** * 287. Find the Duplicate Number * 题意:n+1个数属于[1~n],找出重复的那个数 * 难度:Medium * 分类:Array, Two Pointers, Binary Search * 思路:如果nums[i]不在对应位置,则和对应位置交换。如果对应位置上...
leetcode: https://leetcode.com/problems/rotate-image/ 解: [[1, 2, 3],[4, 5, 6],[7, 8, 9]]//The solution is to first take the transpose of the matrix.//After taking the transpose the resulting matrix is as follows.[[1, 4, 7],[2, 5, 8],[3, 6, 9]]//After the tr...
This is LeetCode's official curated list of Top classic interview questions to help you land your dream job. Our top interview questions are divided into the following series: Easy Collection Medium Collection Hard Collection to help you master Data Structure & Algorithms and improve your coding ...
LeetCode Top 100 Liked Questions 416. Partition Equal Subset Sum (Java版; Medium) 题目描述 Given a non-empty array containing only positive integers, find if the array can be partitioned into two subsets such that the sum of elements in both subsets is equal. Note: Each of the array elem...
LeetCode Top Interview Questions 277. Find the Celebrity (Java版; Medium) 题目描述 Suppose you are at a party with n people (labeled from 0 to n - 1) and among them, there may exist one celebrity. The definition of a celebrity is that all the other n - 1 people know him/her but...