- Notifications
You must be signed in to change notification settings - Fork0
Solutions collection of LeetCode submissions in JavaScript & TypeScript (LeetCode 解题集之 JavaScript & TypeScript 版)
License
dev2js/LeetCode-with-JavaScript
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
This is the solutions collection of my LeetCode submissions, most of them are programmed in JavaScript. All JavaScript codes are wrote in ECMAScript 6 standard, each solution file will contain a problem description in the beginning, and followed by some necessary explanation, some problems will provide more than one solution, please refer to the comments after the main solution for one specific problem.
ATTENTION: If you also use JavaScript as your coding language, you should pay attention to some JavaScript INTERNAL issues, such as bitwise operators, so as to let you not drop into some trouble which may be caused by JavaScript itself.
Progress: 45/
ID | Title | Solution | Difficulty |
---|---|---|---|
1 | Two Sum | JavaScript | Easy |
2 | Add Two Numbers | JavaScript | Medium |
3 | Longest Substring Without Repeating Characters | JavaScript | Medium |
5 | Longest Palindromic Substring | JavaScript | Medium |
6 | ZigZag Conversion | JavaScript | Medium |
7 | Reverse Integer | JavaScript | Easy |
8 | String to Integer (atoi) | JavaScript | Medium |
11 | Container With Most Water | JavaScript | Medium |
13 | Roman to Integer | JavaScript | Easy |
14 | Longest Common Prefix | JavaScript | Easy |
15 | 3Sum | JavaScript | Medium |
17 | Letter Combinations of a Phone Number | JavaScript | Medium |
19 | Remove Nth Node From End of List | JavaScript | Medium |
22 | Generate Parentheses | JavaScript | Medium |
26 | Remove Duplicates from Sorted Array | JavaScript | Easy |
29 | Divide Two Integers | JavaScript | Medium |
33 | Search in Rotated Sorted Array | JavaScript | Medium |
34 | Search for a Range | JavaScript | Medium |
43 | Multiply Strings | JavaScript | Medium |
46 | Permutations | JavaScript | Medium |
48 | Rotate Image | JavaScript | Medium |
49 | Group Anagrams | JavaScript | Medium |
54 | Spiral Matrix | JavaScript | Medium |
66 | Plus One | JavaScript | Easy |
69 | Sqrt(x) | JavaScript | Easy |
|71|Simplify Path |JavaScript|Medium||73|Set Matrix Zeroes |JavaScript|Medium||75|Sort Colors |JavaScript|Medium||91|Decode Ways |JavaScript|Medium||120|Triangle |JavaScript|Medium||130|Surrounded Regions |JavaScript|Medium||133|Clone Graph |JavaScript|Medium||136|Single Number |JavaScript|Easy||152|Maximum Product Subarray |JavaScript|Medium||175|Combine Two Tables|SQL|Easy||176|Second Highest Salary|SQL|Easy||177|Nth Highest Salary|SQL|Medium||181|Employees Earning More Than Their Managers |SQL|Easy||182|Duplicate Emails |SQL|Easy||183|Customers Who Never Order |SQL|Easy||184|Department Highest Salary |SQL|Medium||189|Rotate Array |JavaScript|Easy||190|Reverse Bits |JavaScript|Easy||196|Delete Duplicate Emails |SQL|Easy||197|Rising Temperature |SQL|Easy||206|Reverse Linked List |JavaScript|Easy||207|Course Schedule |JavaScript|Medium||210|Course Schedule II |JavaScript|Medium||240|Search a 2D Matrix II |JavaScript|Medium||307|Range Sum Query - Mutable |JavaScript|Medium||310|Minimum Height Trees |JavaScript|Medium||342|Power of Four |JavaScript|Easy||344|Reverse String |JavaScript|Easy||371|Sum of Two Integers |JavaScript|Easy||384|Shuffle an Array |JavaScript|Medium||404|Sum of Left Leaves |JavaScript|Easy||413|Arithmetic Slices |JavaScript|Medium||416|Partition Equal Subset Sum |JavaScript|Medium||434|Number of Segments in a String |JavaScript|Easy||494|Target Sum |JavaScript|Medium||516|Longest Palindromic Subsequence |JavaScript|Medium||523|Continuous Subarray Sum |JavaScript|Medium||| |||
About
Solutions collection of LeetCode submissions in JavaScript & TypeScript (LeetCode 解题集之 JavaScript & TypeScript 版)
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
Packages0
Languages
- JavaScript74.3%
- TypeScript23.8%
- Python1.9%