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 Interview Questions https://leetcode.com/problemset/top-interview-questions/
这篇文章是关于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 ...
If no valid conversion could be performed, a zero value is returned. Note: Only the space character ' ' is considered as whitespace character. Assume we are dealing with an environment which could only store integers within the 32-bit signed integer range: [−231, 231 − 1]. If the ...
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题目的思路) 45.4k Java 11/14 3 /mall mall项目是一套电商系统,包括前台商城系统及后台管理系统,基于SpringBoot+MyBatis实现。 前台系统包含首页门户、商品推荐、商品搜索、商品展示、购物车...
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...
LeetCode Top 100 Liked Questions 303. Range Sum Query - Immutable (Java版; Easy) 题目描述 Given an integer array nums, find the sum of the elements between indices i and j (i ≤ j), inclusive. Example: Given nums = [-2, 0, 3, -5, 2, -1] ...
welcome to my blog LeetCode Top Interview Questions 69. Sqrt(x) (Java版; Easy) 题目描述 第一次做; 二分法; 最开始觉得不好用二分法, 因为没有考虑到二分到死...LeetCode Top Interview Questions 88. Merge Sorted Array (Java版; Easy) welcome to my blog LeetCode Top Interview Questions 88....
leetcode top-100-liked-questions刷题总结 一、起因 宅在家中,不知该做点什么。没有很好的想法,自己一直想提升技能,语言基础自不必言,数据结构还算熟悉,算法能力一般。于是乎,就去刷一通题。 刷题平台有很多,我选择了在leetcode进行刷题。回头看第一篇文章,还算有一些收获的。