Skip to content

wang790222/Leetcode_Practice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 

Repository files navigation

Leetcode Practice - Javascript

# Title Solution
1 Two Sum Javascript
2 Add Two Numbers Javascript
3 Longest Substring Without Repeating Characters Javascript
7 Reverse Integer Javascript
9 Palindrome Number Javascript
14 Longest Common Prefix Javascript
15 3 Sum Javascript
16 3Sum Closest Javascript
20 Valid Parentheses Javascript
21 Merge Two Sorted Lists Javascript
26 Remove Duplicates from Sorted Array Javascript
27 Remove Element Javascript
28 Implement strStr() Javascript
29 Divide Two Integers Javascript
33 Search in Rotated Sorted Array Javascript
35 Search Insert Position Javascript
36 Valid Sudoku Javascript
49 Group Anagrams Javascript
53 Maximum Subarray Javascript
58 Length of Last Word Javascript
59 59. Spiral Matrix II Javascript
60 Permutation Sequence Javascript
61 Rotate List Javascript
66 Plus One Javascript
67 Add Binary Javascript
69 Sqrt(x) Javascript
70 Climbing Stairs Javascript
77 Combinations Javascript
78 Subsets Javascript
80 Remove Duplicates from Sorted Array II Javascript
81 Search in Rotated Sorted Array II Javascript
83 Remove Duplicates from Sorted List Javascript
88 Merge Sorted Array Javascript
94 Binary Tree Inorder Traversal Javascript
100 Same Tree Javascript
101 Symmetric Tree Javascript
104 Maximum Depth of Binary Tree Javascript
107 Binary Tree Level Order Traversal II Javascript
114 Flatten Binary Tree to Linked List Javascript
118 Pascal's Triangle Javascript
119 Pascal's Triangle II Javascript
121 Best Time to Buy and Sell Stock Javascript
122 Best Time to Buy and Sell Stock II Javascript
125 Valid Palindrome Javascript
136 Single Number Javascript
141 Linked List Cycle Javascript
148 Sort List Javascript
151 Reverse Words in a String Javascript
152 Maximum Product Subarray Javascript
155 Min Stack Javascript
160 Intersection of Two Linked Lists Javascript
167 Two Sum II - Input array is sorted Javascript
168 Excel Sheet Column Title Javascript
169 Majority Element Javascript
171 Excel Sheet Column Number Javascript
172 Factorial Trailing Zeroes Javascript
175 Combine Two Tables Javascript
189 Rotate Array Javascript
190 Reverse Bits Javascript
191 Number of 1 Bits Javascript
198 House Robber Javascript
202 Happy Number Javascript
203 Remove Linked List Elements Javascript
204 Count Primes Javascript
205 Isomorphic Strings Javascript
206 Reverse Linked List Javascript
217 Contains Duplicate Javascript
219 Contains Duplicate II Javascript
224 Basic Calculator Javascript
226 Invert Binary Tree Javascript
227 Basic Calculator II Javascript
231 Power of Two Javascript
234 Palindrome Linked List Javascript
235 Lowest Common Ancestor of a Binary Search Tree Javascript
237 Delete Node in a Linked List Javascript
238 Product of Array Except Self Javascript
242 Valid Anagram Javascript
258 Add Digits Javascript
263 Ugly Number Javascript
268 Missing Number Javascript
278 First Bad Version Javascript
283 Move Zeroes Javascript
290 Word Pattern Javascript
303 Range Sum Query - Immutable Javascript
326 Power of Three Javascript
342 Power of Four Javascript
344 Reverse String Javascript
345 Reverse Vowels of a String Javascript
347 Top K Frequent Elements Javascript
349 Intersection of Two Arrays Javascript
350 Intersection of Two Arrays II Javascript
367 Valid Perfect Square Javascript
371 Sum of Two Integers Javascript
374 Guess Number Higher or Lower Javascript
383 Ransom Note Javascript
387 First Unique Character in a String Javascript
389 Find the Difference Javascript
392 Is Subsequence Javascript
397 Integer Replacement Javascript
412 Fizz Buzz Javascript
414 Third Maximum Number Javascript
415 Add Strings Javascript
430 Flatten a Multilevel Doubly Linked List Javascript
438 Find All Anagrams in a String Javascript
442 Find All Duplicates in an Array Javascript
448 Find All Numbers Disappeared in an Array Javascript
451 Sort Characters By Frequency Javascript
461 Hamming Distance Javascript
463 Island Perimeter Javascript
476 Number Complement Javascript
485 Max Consecutive Ones Javascript
496 Next Greater Element I Javascript
500 Keyboard Row Javascript
501 Find Mode in Binary Search Tree Javascript
503 Next Greater Element II Javascript
506 Relative Ranks Javascript
509 Fibonacci Number Javascript
520 Detect Capital Javascript
525 Contiguous Array Javascript
535 Encode and Decode TinyURL Javascript
538 Convert BST to Greater Tree Javascript
543 Diameter of Binary Tree Javascript
557 Reverse Words in a String III Javascript
559 Maximum Depth of N-ary Tree Javascript
561 Array Partition I Javascript
563 Binary Tree Tilt Javascript
566 Reshape the Matrix Javascript
575 Distribute Candies Javascript
581 Shortest Unsorted Continuous Subarray Javascript
589 N-ary Tree Preorder Traversal Javascript
590 N-ary Tree Postorder Traversal Javascript
592 Fraction Addition and Subtraction Javascript
593 Valid Square Javascript
594 Longest Harmonious Subsequence Javascript
617 Merge Two Binary Trees Javascript
628 Maximum Product of Three Numbers Javascript
640 Solve the Equation Javascript
645 Set Mismatch Javascript
647 Palindromic Substrings Javascript
648 Replace Words Javascript
657 Robot Return to Origin Javascript
665 Non-decreasing Array Javascript
670 Maximum Swap Javascript
674 Longest Continuous Increasing Subsequence Javascript
680 Valid Palindrome II Javascript
696 Count Binary Substrings Javascript
700 Search in a Binary Search Tree Javascript
705 Design HashSet Javascript
706 Design HashMap Javascript
709 To Lower Case Javascript
717 1-bit and 2-bit Characters Javascript
725 Split Linked List in Parts Javascript
728 Self Dividing Numbers Javascript
739 Daily Temperatures Javascript
746 Min Cost Climbing Stairs Javascript
747 Largest Number At Least Twice of Others Javascript
771 Jewels and Stones Javascript
784 Letter Case Permutation Javascript
796 Rotate String Javascript
804 Unique Morse Code Words Javascript
811 Subdomain Visit Count Javascript
821 Shortest Distance to a Character Javascript
832 Flipping an Image Javascript
844 Backspace String Compare Javascript
852 Peak Index in a Mountain Array Javascript
859 Buddy Strings Javascript
860 Lemonade Change Javascript
876 Middle of the Linked List Javascript
884 Uncommon Words from Two Sentences Javascript
888 Fair Candy Swap Javascript
890 Find and Replace Pattern Javascript
896 Monotonic Array Javascript
897 Increasing Order Search Tree Javascript
905 Sort Array By Parity Javascript
917 Reverse Only Letters Javascript
922 Sort Array By Parity II Javascript
929 Unique Email Addresses Javascript
933 Number of Recent Calls Javascript
938 Range Sum of BST Javascript
942 DI String Match Javascript
944 Delete Columns to Make Sorted Javascript
945 Minimum Increment to Make Array Unique Javascript
950 Reveal Cards In Increasing Order Javascript
953 Verifying an Alien Dictionary Javascript
961 N-Repeated Element in Size 2N Array Javascript
965 Univalued Binary Tree Javascript
973 K Closest Points to Origin Javascript
977 Squares of a Sorted Array Javascript
984 String Without AAA or BBB Javascript
985 Sum of Even Numbers After Queries Javascript
989 Add to Array-Form of Integer Javascript
999 Available Captures for Rook Javascript
1002 Find Common Characters Javascript
1005 Maximize Sum Of Array After K Negations Javascript
1009 Complement of Base 10 Integer Javascript
1013 Partition Array Into Three Parts With Equal Sum Javascript
1021 Remove Outermost Parentheses Javascript
1029 Two City Scheduling Javascript
1046 Last Stone Weight Javascript
1051 Height Checker Javascript
1052 Grumpy Bookstore Owner Javascript
1071 Greatest Common Divisor of Strings Javascript
1078 Occurrences After Bigram Javascript
1089 Duplicate Zeros Javascript
1108 Defanging an IP Address Javascript
1190 Reverse Substrings Between Each Pair of Parentheses Javascript
1128 Number of Equivalent Domino Pairs Javascript
1137 N-th Tribonacci Number Javascript
1189 Maximum Number of Balloons Javascript
1207 Unique Number of Occurrences Javascript
1221 Split a String in Balanced Strings Javascript
1247 Minimum Swaps to Make Strings Equal Javascript
1281 Subtract the Product and Sum of Digits of an Integer Javascript
1288 Remove Covered Intervals Javascript
1290 Convert Binary Number in a Linked List to Integer Javascript
1295 Find Numbers with Even Number of Digits Javascript
1313 Decompress Run-Length Encoded List Javascript
1317 Convert Integer to the Sum of Two No-Zero Integers Javascript
1323 Maximum 69 Number Javascript
1329 Sort the Matrix Diagonally Javascript
1338 Reduce Array Size to The Half Javascript
1356 Sort Integers by The Number of 1 Bits Javascript
1365 How Many Numbers Are Smaller Than the Current Number Javascript
1380 Lucky Numbers in a Matrix Javascript
1389 Create Target Array in the Given Order Javascript
1480 Running Sum of 1d Array Javascript

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published