2000道Java版LeetCode题解 - 阅读指南

LeetCode 刷题目录

01、 1. Two Sum 两数之和
02、 2. Add Two Numbers 两数相加
03、 3. Longest Substring Without Repeating Characters 无重复字符的最长子串
04、 4. Median of Two Sorted Arrays 寻找两个正序数组的中位数
05、 5. Longest Palindromic Substring 最长回文子串
06、 6. Zigzag Conversion Z 字形变换
07、 7. Reverse Integer 整数反转
08、 8. String to Integer (atoi) 字符串转换整数 (atoi)
09、 9. Palindrome Number 回文数
10、 11. Container With Most Water 盛最多水的容器
11、 12. Integer to Roman 整数转罗马数字
12、 13. Roman to Integer 罗马数字转整数
13、 14. Longest Common Prefix 最长公共前缀
14、 15. 3Sum 三数之和
15、 16. 3Sum Closest 最接近的三数之和
16、 17. Letter Combinations of a Phone Number 电话号码的字母组合
17、 18. 4Sum 四数之和
18、 19. Remove Nth Node From End of List 删除链表的倒数第 N 个结点
19、 20. Valid Parentheses 有效的括号
20、 21. Merge Two Sorted Lists 合并两个有序链表
21、 22. Generate Parentheses 括号生成
22、 23. Merge k Sorted Lists 合并K个升序链表
23、 26. Remove Duplicates from Sorted Array 删除有序数组中的重复项
24、 27. Remove Element 移除元素
25、 28. Implement strStr() 实现 strStr()
26、 31. Next Permutation 下一个排列
27、 33. Search in Rotated Sorted Array 搜索旋转排序数组
28、 34. Find First and Last Position of Element in Sorted Array 在排序数组中查找元素的第一个和最后一个位置
29、 35. Search Insert Position 搜索插入位置
30、 36. Valid Sudoku 有效的数独
31、 38. Count and Say 外观数列
32、 39. Combination Sum 组合总和
33、 40. Combination Sum II 组合总和 II
34、 42. Trapping Rain Water 接雨水
35、 43. Multiply Strings 字符串相乘
36、 45. Jump Game II 跳跃游戏 II
37、 46. Permutations 全排列
38、 47. Permutations II 全排列 II
39、 48. Rotate Image 旋转图像
40、 49. Group Anagrams 字母异位词分组