LeetCode题解目录

LeetCode 练习

感谢 LeetCode CN

感谢 VsCode 中 LeetCode 插件的作者

Id Title Tags Difficulty Language
1 two-sum/两数之和 array/hash-table Easy js
4 find-median-sorted-arrays/寻找两个有序数组的中位数 array/binary-search/divide-and-conquer Hard js
7 reverse-integer/整数反转 math Easy js
9 palindrome-number/回文数 math Easy js
13 roman-to-integer/罗马数字转整数 math/string Easy js
14 longest-common-prefix/最长公共前缀 string Easy js
19 remove-nth-node-from-end-of-list/删除链表的倒数第N个节点 linked-list/two-pointers Medium python
20 valid-parentheses/有效的括号 string/stack Easy js/python
21 merge-two-sorted-lists/合并两个有序链表 linked-list Easy js/python
27 remove-element/移除元素 array/two-pointers Easy js
28 implement-strstr/实现strStr() string/two-pointers Easy js
35 search-insert-position/搜索插入位置 array/binary-search/ Easy js
38 count-and-say/报数 string Easy js
53 maximum-subarray/最大子序和 array/divide-and-conquer/dynamic-programming Easy js
58 length-of-last-word/最后一个单词的长度 string Easy js
66 plus-one/加一 array Easy js
67 add-binary/二进制求和 math/string Easy js
69 sqrtx/x 的平方根 math/binary-search Easy js
70 climbing-stairs/爬楼梯 dynamic-programming Easy js
83 remove-duplicates-from-sorted-list/删除排序链表中的重复元素 linked-list Easy js
88 merge-sorted-array/合并两个有序数组 array/two-pointers Easy js
100 same-tree/相同的树 tree/depth-first-search Easy js
101 symmetric-tree/对称二叉树 tree/depth-first-search/breadth-first-search Easy js
104 maximum-depth-of-binary-tree/二叉树的最大深度 tree/depth-first-search Easy js
141 inked-list-cycle/环形链表 linked-list/two-pointers Easy python
155 min-stack/最小栈 stack/design Easy python
206 reverse-linked-list/反转链表 linked-list Easy python
232 implement-queue-using-stacks/用栈实现队列 stack/design Easy python
844 backspace-string-compare/比较含退格的字符串 Easy python
876 middle-of-the-linked-list/链表的中间结点 ordered-map Easy python