Record my leetcode solution with javascript
# | Title | Solution | Difficulty | Explaination |
---|---|---|---|---|
1 | Two Sum | JavaScript | 🟢easy | |
2 | Add Two Numbers | JavaScript | 🟢easy | |
3 | Longest Substring Without Repeating Characters | JavaScript | 🟡medium | |
4 | Median of Two Sorted Arrays | JavaScript | 🔴hard | |
5 | Longest Palindromic Substring | JavaScript | 🟡medium | |
9 | Palindrome Number | JavaScript | 🟢easy | |
15 | 3Sum | JavaScript | 🟡medium | |
18 | 4Sum | JavaScript | 🟡medium | |
19 | Remove Nth Node From End of List | JavaScript | 🟡medium | |
20 | Valid Parentheses | JavaScript | 🟢easy | |
21 | Merge Two Sorted Lists | JavaScript | 🟢easy | |
23 | Merge k Sorted Lists | JavaScript | 🔴hard | |
25 | Reverse Nodes in k-Group | JavaScript | 🔴hard | |
32 | Longest Valid Parentheses | JavaScript | 🔴hard | |
33 | 搜索旋转排序数组 | JavaScript | 🟡medium | |
36 | Valid Sudoku | JavaScript | 🟡medium | |
49 | Group Anagrams | JavaScript | 🟡medium | |
53 | Maximum Subarray | JavaScript | 🟢easy | |
69 | Sqrt(x) | JavaScript | 🟢easy | |
74 | Search a 2D Matrix | JavaScript | 🟡medium | |
75 | Sort Colors | JavaScript | 🟡medium | |
78 | Subsets | JavaScript | 🟡medium | |
88 | Merge Sorted Array | JavaScript | 🟢easy | |
94 | Binary Tree Inorder Traversal | JavaScript | 🟢easy | |
100 | Same Tree | JavaScript | 🟢easy | |
101 | Symmetric Tree | JavaScript | 🟢easy | |
102 | Binary Tree Level Order Traversal | JavaScript | 🟡medium | |
103 | Binary Tree Zigzag Level Order Traversal | JavaScript | 🟡medium | |
104 | Maximum Depth of Binary Tree | JavaScript | 🟢easy | |
111 | Minimum Depth | JavaScript | 🟢easy | |
121 | Best Time to Buy and Sell Stock | JavaScript | 🟢easy | |
123 | Best Time to Buy and Sell Stock III | JavaScript | 🔴hard | |
128 | Longest Consecutive Sequence | JavaScript | 🟡medium | |
136 | Single Number | JavaScript | 🟢easy | |
141 | Linked List Cycle | JavaScript | 🟢easy | |
142 | 环形链表 II | JavaScript | 🟡medium | |
146 | LRU Cache | JavaScript | 🟡medium | |
155 | Min Stack | JavaScript | 🟢easy | |
160 | Intersection of Two Linked Lists | JavaScript | 🟢easy | |
198 | House Robber | JavaScript | 🟡medium | |
199 | Binary Tree Right Side View | JavaScript | 🟡medium | |
208 | Implement Trie (Prefix Tree) | JavaScript | 🟡medium | |
213 | House Robber II | JavaScript | 🟡medium | |
232 | Implement Queue using Stacks | JavaScript | 🟢easy | |
234 | Palindrome Linked List | JavaScript | 🟢easy | |
316 | Remove Duplicate Letters | JavaScript | 🟡medium | |
349 | Intersection of Two Arrays | JavaScript | 🟢easy | |
404 | Sum of Left Leaves | JavaScript | 🟢easy | |
438 | Find All Anagrams in a String | JavaScript | 🟡medium | |
451 | Sort Characters By Frequency | JavaScript | 🟡medium | |
509 | Fibonacci Number | JavaScript | 🟢easy | |
538 | Convert BST to Greater Tree | JavaScript | 🟡medium | |
543 | Diameter of Binary Tree | JavaScript | 🟢easy | |
572 | Subtree of Another Tree | JavaScript | 🟢easy | |
617 | Merge Two Binary Trees | JavaScript | 🟢easy | |
654 | Maximum Binary Tree | JavaScript | 🟡medium | |
671 | Second Minimum Node In a Binary Tree | JavaScript | 🟢easy | |
687 | Longest Univalue Path | JavaScript | 🟡medium | |
739 | Daily Temperatures | JavaScript | 🟡medium | |
821 | Shortest Distance to a Character | JavaScript | 🟢easy | |
826 | Most Profit Assigning Work | JavaScript | 🟡medium | |
912 | Sort an Array | JavaScript | 🟡medium | |
1455 | Check If a Word Occurs As a Prefix of Any Word in a Sentence | JavaScript | 🟢easy | |
1663 | Smallest String With A Given Numeric Value | JavaScript | 🟡medium | |
1775 | Equal Sum Arrays With Minimum Number of Operations | JavaScript | 🟡medium | |
1779 | Find Nearest Point That Has the Same X or Y Coordinate | JavaScript | 🟢easy | |
剑指 Offer 06 | 从尾到头打印链表 | JavaScript | 🟢easy | |
剑指 Offer 09 | 用两个栈实现队列 | JavaScript | 🟢easy | |
剑指 Offer 18 | 删除链表的节点 | JavaScript | 🟢easy | |
剑指 Offer 22 | 链表中倒数第k个节点 | JavaScript | 🟢easy | |
剑指 Offer 24 | 反转链表 | JavaScript | 🟢easy | |
剑指 Offer 25 | 合并两个排序的链表 LCOF | JavaScript | 🟢easy | |
剑指 Offer 35 | 复杂链表的复制 LCOF | JavaScript | 🟡medium | |
剑指 Offer 50 | 第一个只出现一次的字符 LCOF | JavaScript | 🟢easy | |
剑指 Offer II 079 | 所有子集 | JavaScript | 🟡medium |