Skip to content

iCherya/leetCode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

leetCode

πŸŽ“ My solutions to LeetCode in JavaScript

LeetCode Algorithms

# Title Solution Difficulty
2283 Check if Number Has Equal Digit Count and Digit Value JavaScript Easy
2236 Root Equals Sum of Children JavaScript Easy
2235 Add Two Integers JavaScript Easy
2185 Counting Words With a Given Prefix JavaScript Easy
2181 Merge Nodes in Between Zeros JavaScript Medium
2176 Count Equal and Divisible Pairs in an Array JavaScript Easy
2160 Minimum Sum of Four Digit Number After Splitting Digits JavaScript Easy
2129 Capitalize the Title JavaScript Easy
2124 Check if All A's Appears Before All B's JavaScript Easy
2119 A Number After a Double Reversal JavaScript Easy
2114 Maximum Number of Words Found in Sentences JavaScript Easy
2108 Find First Palindromic String in the Array JavaScript Easy
2099 Find Subsequence of Length K With the Largest Sum JavaScript Easy
2089 Find Target Indices After Sorting Array JavaScript Easy
2032 Two Out of Three JavaScript Easy
2011 Final Value of Variable After Performing Operations JavaScript Easy
2006 Count Number of Pairs With Absolute Difference K JavaScript Easy
2000 Reverse Prefix of Word JavaScript Easy
1984 Minimum Difference Between Highest and Lowest of K Scores JavaScript Easy
1979 Find Greatest Common Divisor of Array JavaScript Easy
1967 Number of Strings That Appear as Substrings in Word JavaScript Easy
1961 Check If String Is a Prefix of Array JavaScript Easy
1957 Delete Characters to Make Fancy String JavaScript Easy
1941 Check if All Characters Have Equal Number of Occurrences JavaScript Easy
1935 Maximum Number of Words You Can Type JavaScript Easy
1929 Concatenation of Array JavaScript Easy
1920 Build Array from Permutation JavaScript Easy
1913 Maximum Product Difference Between Two Pairs JavaScript Easy
1911 Maximum Alternating Subsequence Sum JavaScript Medium
1910 Remove All Occurrences of a Substring JavaScript Medium
1909 Remove One Element to Make the Array Strictly Increasing JavaScript Easy
1903 Largest Odd Number in String JavaScript Easy
1895 Largest Magic Square JavaScript Medium
1894 Find the Student that Will Replace the Chalk JavaScript Medium
1893 Check if All the Integers in a Range Are Covered JavaScript Easy
1886 Determine Whether Matrix Can Be Obtained By Rotation JavaScript Easy
1881 Maximum Value after Insertion JavaScript Medium
1880 Check if Word Equals Summation of Two Words JavaScript Easy
1877 Minimize Maximum Pair Sum in Array JavaScript Medium
1876 Substrings of Size Three with Distinct Characters JavaScript Easy
1869 Longer Contiguous Segments of Ones than Zeros JavaScript Easy
1862 Sum of Floored Pairs JavaScript Hard
1860 Incremental Memory Leak JavaScript Medium
1859 Sorting the Sentence JavaScript Easy
1855 Maximum Distance Between a Pair of Values JavaScript Medium
1854 Maximum Population Year JavaScript Easy
1848 Minimum Distance to the Target Element JavaScript Easy
1844 Replace All Digits with Characters JavaScript Easy
1837 Sum of Digits in Base K JavaScript Easy
1832 Check if the Sentence Is Pangram JavaScript Easy
1829 Maximum XOR for Each Query JavaScript Medium
1828 Queries on Number of Points Inside a Circle JavaScript Medium
1827 Minimum Operations to Make the Array Increasing JavaScript Easy
1822 Sign of the Product of an Array JavaScript Easy
1816 Truncate Sentence JavaScript Easy
1814 Count Nice Pairs in an Array JavaScript Medium
1813 Sentence Similarity III JavaScript Medium
1812 Determine Color of a Chessboard Square JavaScript Easy
1805 Number of Different Integers in a String JavaScript Easy
1800 Maximum Ascending Subarray Sum JavaScript Easy
1798 Maximum Number of Consecutive Values You Can Make JavaScript Medium
1797 Design Authentication Manager JavaScript Medium
1796 Second Largest Digit in a String JavaScript Easy
1791 Find Center of Star Graph JavaScript Easy
1784 Check if Binary String Has at Most One Segment of Ones JavaScript Easy
1781 Sum of Beauty of All Substrings JavaScript Medium
1780 Check if Number is a Sum of Powers of Three JavaScript Medium
1779 Find Nearest Point That Has the Same X or Y Coordinate JavaScript Easy
1773 Count Items Matching a Rule JavaScript Easy
1769 Minimum Number of Operations to Move All Balls to Each Box JavaScript Medium
1768 Merge Strings Alternately JavaScript Easy
1757 Recyclable and Low Fat Products SQL Easy
1752 Check if Array Is Sorted and Rotated JavaScript Easy
1750 Minimum Length of String After Deleting Similar Ends JavaScript Medium
1749 Maximum Absolute Sum of Any Subarray JavaScript Medium
1748 Sum of Unique Elements JavaScript Easy
1734 Decode XORed Permutation JavaScript Medium
1732 Find the Highest Altitude JavaScript Easy
1721 Swapping Nodes in a Linked List JavaScript Medium
1720 Decode XORed Array JavaScript Easy
1717 Maximum Score From Removing Substrings JavaScript Medium
1716 Calculate Money in Leetcode Bank JavaScript Easy
1710 Maximum Units on a Truck JavaScript Easy
1704 Determine if String Halves Are Alike JavaScript Easy
1696 Jump Game VI JavaScript Medium
1695 Maximum Erasure Value JavaScript Medium
1694 Reformat Phone Number JavaScript Easy
1690 Stone Game VII JavaScript Medium
1689 Partitioning Into Minimum Number Of Deci-Binary Numbers JavaScript Medium
1688 Count of Matches in Tournament JavaScript Easy
1685 Sum of Absolute Differences in a Sorted Array JavaScript Medium
1684 Count the Number of Consistent Strings JavaScript Easy
1680 Concatenation of Consecutive Binary Numbers JavaScript Medium
1679 Max Number of K-Sum Pairs JavaScript Medium
1678 Goal Parser Interpretation JavaScript Easy
1675 Minimize Deviation in Array JavaScript Hard
1673 Find the Most Competitive Subsequence JavaScript Medium
1672 Richest Customer Wealth JavaScript Easy
1668 Maximum Repeating Substring JavaScript Easy
1663 Smallest String With A Given Numeric Value JavaScript Medium
1662 Check If Two String Arrays are Equivalent JavaScript Easy
1658 Minimum Operations to Reduce X to Zero JavaScript Medium
1657 Determine if Two Strings Are Close JavaScript Medium
1656 Design an Ordered Stream JavaScript Easy
1649 Create Sorted Array through Instructions JavaScript Hard
1646 Get Maximum in Generated Array JavaScript Easy
1642 Furthest Building You Can Reach JavaScript Medium
1641 Count Sorted Vowel Strings JavaScript Medium
1640 Check Array Formation Through Concatenation JavaScript Easy
1636 Sort Array by Increasing Frequency JavaScript Easy
1632 Rank Transform of a Matrix JavaScript Hard
1631 Path With Minimum Effort JavaScript Medium
1629 Slowest Key JavaScript Easy
1624 Largest Substring Between Two Equal Characters JavaScript Easy
1619 Mean of Array After Removing Some Elements JavaScript Easy
1614 Maximum Nesting Depth of the Parentheses JavaScript Easy
1603 Design Parking System JavaScript Easy
1588 Sum of All Odd Length Subarrays JavaScript Easy
1572 Matrix Diagonal Sum JavaScript Easy
1556 Thousand Separator JavaScript Easy
1551 Minimum Operations to Make Array Equal JavaScript Medium
1550 Three Consecutive Odds JavaScript Easy
1539 Kth Missing Positive Number JavaScript Easy
1534 Count Good Triplets JavaScript Easy
1528 Shuffle String JavaScript Easy
1523 Count Odd Numbers in an Interval Range JavaScript Easy
1518 Water Bottles JavaScript Easy
1512 Number of Good Pairs JavaScript Easy
1507 Reformat Date JavaScript Easy
1502 Can Make Arithmetic Progression From Sequence JavaScript Easy
1491 Average Salary Excluding the Minimum and Maximum Salary JavaScript Easy
1486 XOR Operation in an Array JavaScript Easy
1480 Running Sum of 1d Array JavaScript Easy
1476 Subrectangle Queries JavaScript Easy
1470 Shuffle the Array JavaScript Easy
1465 Maximum Area of a Piece of Cake After Horizontal and Vertical Cuts JavaScript Medium
1464 Maximum Product of Two Elements in an Array JavaScript Easy
1463 Cherry Pickup II JavaScript Hard
1461 Check If a String Contains All Binary Codes of Size K JavaScript Medium
1457 Pseudo-Palindromic Paths in a Binary Tree JavaScript Medium
1455 Check If a Word Occurs As a Prefix of Any Word in a Sentence JavaScript Easy
1450 Number of Students Doing Homework at a Given Time JavaScript Easy
1448 Count Good Nodes in Binary Tree JavaScript Medium
1446 Consecutive Characters JavaScript Easy
1437 Check If All 1's Are at Least Length K Places Away JavaScript Easy
1431 Kids With the Greatest Number of Candies JavaScript Easy
1423 Maximum Points You Can Obtain from Cards JavaScript Medium
1396 Design Underground System JavaScript Medium
1394 Find Lucky Integer in an Array JavaScript Easy
1389 Create Target Array in the Given Order JavaScript Easy
1385 Find the Distance Value Between Two Arrays JavaScript Easy
1383 Maximum Performance of a Team JavaScript Hard
1379 Find a Corresponding Node of a Binary Tree in a Clone of That Tree JavaScript Medium
1365 How Many Numbers Are Smaller Than the Current Number JavaScript Easy
1360 Number of Days Between Two Dates JavaScript Easy
1356 Sort Integers by The Number of 1 Bits JavaScript Easy
1354 Construct Target Array With Multiple Sums JavaScript Hard
1351 Count Negative Numbers in a Sorted Matrix JavaScript Easy
1346 Check If N and Its Double Exist JavaScript Easy
1345 Jump Game IV JavaScript Hard
1342 Number of Steps to Reduce a Number to Zero JavaScript Easy
1339 Maximum Product of Splitted Binary Tree JavaScript Medium
1338 Reduce Array Size to The Half JavaScript Medium
1337 The K Weakest Rows in a Matrix JavaScript Easy
1332 Remove Palindromic Subsequences JavaScript Easy
1329 Sort the Matrix Diagonally JavaScript Medium
1325 Delete Leaves With a Given Value JavaScript Medium
1323 Maximum 69 Number JavaScript Easy
1313 Decompress Run-Length Encoded List JavaScript Easy
1305 All Elements in Two Binary Search Trees JavaScript Medium
1302 Deepest Leaves Sum JavaScript Medium
1299 Replace Elements with Greatest Element on Right Side JavaScript Easy
1295 Find Numbers with Even Number of Digits JavaScript Easy
1290 Convert Binary Number in a Linked List to Integer JavaScript Easy
1287 Element Appearing More Than 25% In Sorted Array JavaScript Easy
1281 Subtract the Product and Sum of Digits of an Integer JavaScript Easy
1268 Search Suggestions System JavaScript Medium
1249 Minimum Remove to Make Valid Parentheses JavaScript Medium
1232 Check If It Is a Straight Line JavaScript Easy
1221 Split a String in Balanced Strings JavaScript Easy
1220 Count Vowels Permutation JavaScript Hard
1209 Remove All Adjacent Duplicates in String II JavaScript Medium
1207 Unique Number of Occurrences JavaScript Easy
1200 Minimum Absolute Difference JavaScript Easy
1192 Critical Connections in a Network JavaScript Hard
1185 Day of the Week JavaScript Easy
1160 Find Words That Can Be Formed by Characters JavaScript Easy
1154 Day of the Year JavaScript Easy
1143 Longest Common Subsequence JavaScript Medium
1137 N-th Tribonacci Number JavaScript Easy
1128 Number of Equivalent Domino Pairs JavaScript Easy
1122 Relative Sort Array JavaScript Easy
1108 Defanging an IP Address JavaScript Easy
1094 Car Pooling JavaScript Medium
1091 Shortest Path in Binary Matrix JavaScript Medium
1089 Duplicate Zeros JavaScript Easy
1078 Occurrences After Bigram JavaScript Easy
1074 Number of Submatrices That Sum to Target JavaScript Hard
1071 Greatest Common Divisor of Strings JavaScript Easy
1051 Height Checker JavaScript Easy
1048 Longest String Chain JavaScript Medium
1047 Remove All Adjacent Duplicates In String JavaScript Easy
1046 Last Stone Weight JavaScript Easy
1041 Robot Bounded In Circle JavaScript Medium
1038 Binary Search Tree to Greater Sum Tree JavaScript Medium
1032 Stream of Characters JavaScript Hard
1022 Sum of Root To Leaf Binary Numbers JavaScript Easy
1013 Partition Array Into Three Parts With Equal Sum JavaScript Easy
1010 Complement of Base 10 Integer JavaScript Medium
1009 Complement of Base 10 Integer JavaScript Easy
1004 Max Consecutive Ones III JavaScript Medium
1002 Find Common Characters JavaScript Easy
997 Find the Town Judge JavaScript Easy
994 Rotting Oranges JavaScript Medium
993 Cousins in Binary Tree JavaScript Easy
991 Broken Calculator JavaScript Medium
987 Vertical Order Traversal of a Binary Tree JavaScript Hard
985 Sum of Even Numbers After Queries JavaScript Easy
977 Squares of a Sorted Array JavaScript Easy
971 Flip Binary Tree To Match Preorder Traversal JavaScript Medium
970 Powerful Integers JavaScript Medium
968 Binary Tree Cameras JavaScript Hard
966 Vowel Spellchecker JavaScript Medium
961 N-Repeated Element in Size 2N Array JavaScript Easy
954 Array of Doubled Pairs JavaScript Medium
953 Verifying an Alien Dictionary JavaScript Easy
946 Validate Stack Sequences JavaScript Medium
943 Valid Mountain Array JavaScript Hard
941 Valid Mountain Array JavaScript Easy
938 Range Sum of BST JavaScript Easy
936 Stamping The Sequence JavaScript Hard
932 Beautiful Array JavaScript Medium
927 Three Equal Parts JavaScript Hard
926 Flip String to Monotone Increasing JavaScript Medium
923 3Sum With Multiplicity JavaScript Medium
917 Reverse Only Letters JavaScript Easy
916 Word Subsets JavaScript Medium
915 Partition Array into Disjoint Intervals JavaScript Medium
910 Smallest Range II JavaScript Medium
906 Super Palindromes JavaScript Hard
905 Sort Array By Parity JavaScript Easy
897 Increasing Order Search Tree JavaScript Easy
896 Monotonic Array JavaScript Easy
895 Maximum Frequency Stack JavaScript Hard
890 Find and Replace Pattern JavaScript Medium
884 Uncommon Words from Two Sentences JavaScript Easy
881 Boats to Save People JavaScript Medium
880 Decoded String at Index JavaScript Medium
877 Stone Game JavaScript Medium
876 Middle of the Linked List JavaScript Easy
871 Minimum Number of Refueling Stops JavaScript Hard
870 Advantage Shuffle JavaScript Medium
869 Decoded String at Index JavaScript Medium
867 Transpose Matrix JavaScript Easy
865 Smallest Subtree with all the Deepest Nodes JavaScript Medium
860 Lemonade Change JavaScript Easy
856 Score of Parentheses JavaScript Medium
849 Maximize Distance to Closest Person JavaScript Medium
848 Shifting Letters JavaScript Medium
844 Backspace String Compare JavaScript Easy
841 Keys and Rooms JavaScript Medium
838 Push Dominoes JavaScript Medium
832 Flipping an Image JavaScript Easy
827 Making A Large Island JavaScript Hard
824 Goat Latin JavaScript Easy
823 Binary Trees With Factors JavaScript Medium
821 Shortest Distance to a Character JavaScript Easy
820 Short Encoding of Words JavaScript Medium
819 Most Common Word JavaScript Easy
816 Ambiguous Coordinates JavaScript Medium
814 Binary Tree Pruning JavaScript Medium
804 Unique Morse Code Words JavaScript Easy
796 Rotate String JavaScript Easy
795 Number of Subarrays with Bounded Maximum JavaScript Medium
792 Number of Matching Subsequences JavaScript Medium
791 Custom Sort String JavaScript Medium
785 Is Graph Bipartite? JavaScript Easy
784 Letter Case Permutation JavaScript Medium
778 Swim in Rising Water JavaScript Hard
775 Global and Local Inversions JavaScript Medium
771 Jewels and Stones JavaScript Easy
754 Reach a Number JavaScript Medium
752 Open the Lock JavaScript Medium
748 Shortest Completing Word JavaScript Easy
747 Largest Number At Least Twice of Others JavaScript Easy
746 Min Cost Climbing Stairs JavaScript Easy
745 Prefix and Suffix Search JavaScript Hard
744 Find Smallest Letter Greater Than Target JavaScript Easy
733 Flood Fill JavaScript Easy
729 My Calendar I JavaScript Medium
728 Self Dividing Numbers JavaScript Easy
724 Find Pivot Index JavaScript Easy
720 Longest Word in Dictionary JavaScript Easy
718 Maximum Length of Repeated Subarray JavaScript Medium
714 Best Time to Buy and Sell Stock with Transaction Fee JavaScript Medium
709 To Lower Case JavaScript Easy
707 Design Linked List JavaScript Medium
706 Design HashMap JavaScript Easy
705 Design HashSet JavaScript Easy
704 Binary Search JavaScript Easy
703 Kth Largest Element in a Stream JavaScript Easy
701 Insert into a Binary Search Tree JavaScript Medium
700 Search in a Binary Search Tree JavaScript Easy
697 Degree of an Array JavaScript Easy
696 Count Binary Substrings JavaScript Easy
695 Max Area of Island JavaScript Medium
684 Redundant Connection JavaScript Medium
682 Baseball Game JavaScript Easy
680 Valid Palindrome II JavaScript Easy
677 Map Sum Pairs JavaScript Medium
669 Trim a Binary Search Tree JavaScript Medium
667 Beautiful Arrangement II JavaScript Medium
665 Non-decreasing Array JavaScript Medium
658 Find K Closest Elements JavaScript Medium
653 Two Sum IV - Input is a BST JavaScript Easy
647 Palindromic Substrings JavaScript Medium
645 Set Mismatch JavaScript Easy
643 Maximum Average Subarray I JavaScript Easy
639 Decode Ways II JavaScript Hard
637 Average of Levels in Binary Tree JavaScript Easy
633 Sum of Square Numbers JavaScript Medium
630 Course Schedule III JavaScript Hard
629 K Inverse Pairs Array JavaScript Hard
623 Add One Row to Tree JavaScript Medium
622 Design Circular Queue JavaScript Medium
617 Merge Two Binary Trees JavaScript Easy
611 Valid Triangle Number JavaScript Medium
609 Find Duplicate File in System JavaScript Medium
605 Can Place Flowers JavaScript Easy
600 Non-negative Integers without Consecutive Ones JavaScript Hard
598 Range Addition II JavaScript Easy
594 Longest Harmonious Subsequence JavaScript Easy
589 N-ary Tree Preorder Traversal JavaScript Easy
583 Delete Operation for Two Strings JavaScript Medium
581 Shortest Unsorted Continuous Subarray JavaScript Medium
576 Out of Boundary Paths JavaScript Medium
575 Distribute Candies JavaScript Easy
567 Permutation in String JavaScript Medium
566 Reshape the Matrix JavaScript Easy
565 Array Nesting JavaScript Medium
561 Array Partition I JavaScript Easy
560 Subarray Sum Equals K JavaScript Medium
557 Reverse Words in a String III JavaScript Easy
556 Next Greater Element III JavaScript Medium
554 Brick Wall JavaScript Medium
542 01 Matrix JavaScript Medium
538 Convert BST to Greater Tree JavaScript Medium
537 Simple Javascript Solution Explained JavaScript Medium
536 Encode and Decode TinyURL JavaScript Medium
526 Beautiful Arrangement JavaScript Medium
524 Longest Word in Dictionary through Deleting JavaScript Medium
520 Detect Capital JavaScript Easy
509 Fibonacci Number JavaScript Easy
504 Base 7 JavaScript Easy
500 Keyboard Row JavaScript Easy
498 Diagonal Traverse JavaScript Medium
496 Next Greater Element I JavaScript Easy
485 Max Consecutive Ones JavaScript Easy
478 Generate Random Point in a Circle JavaScript Medium
476 Number Complement JavaScript Easy
474 Ones and Zeroes JavaScript Medium
473 Matchsticks to Square JavaScript Medium
463 Island Perimeter JavaScript Easy
462 Minimum Moves to Equal Array Elements II JavaScript Medium
461 Hamming Distance JavaScript Easy
454 4Sum II JavaScript Medium
451 Sort Characters By Frequency JavaScript Medium
448 Find All Numbers Disappeared in an Array JavaScript Easy
438 Find All Anagrams in a String JavaScript Medium
434 Number of Segments in a String JavaScript Easy
429 N-ary Tree Level Order Traversal JavaScript Medium
423 Reconstruct Original Digits from English JavaScript Medium
417 Pacific Atlantic Water Flow JavaScript Medium
415 Add Strings JavaScript Easy
414 Third Maximum Number JavaScript Easy
413 Arithmetic Slices JavaScript Medium
412 Fizz Buzz JavaScript Easy
409 Longest Palindrome JavaScript Easy
404 Sum of Left Leaves JavaScript Easy
392 Is Subsequence JavaScript Easy
389 Find the Difference JavaScript Easy
387 First Unique Character in a String JavaScript Easy
384 Shuffle an Array JavaScript Medium
383 Ransom Note JavaScript Easy
382 Linked List Random Node JavaScript Medium
378 Kth Smallest Element in a Sorted Matrix JavaScript Medium
377 Combination Sum IV JavaScript Medium
376 Wiggle Subsequence JavaScript Medium
374 Guess Number Higher or Lower JavaScript Easy
367 Valid Perfect Square JavaScript Easy
363 Max Sum of Rectangle No Larger Than K JavaScript Hard
354 Russian Doll Envelopes JavaScript Hard
350 Intersection of Two Arrays II JavaScript Easy
349 Intersection of Two Arrays JavaScript Easy
347 Top K Frequent Elements JavaScript Medium
345 Reverse Vowels of a String JavaScript Easy
344 Reverse String JavaScript Easy
342 Power of Four JavaScript Easy
341 Flatten Nested List Iterator JavaScript Medium
338 Counting Bits JavaScript Easy
336 Palindrome Pairs JavaScript Hard
334 Increasing Triplet Subsequence JavaScript Medium
331 Verify Preorder Serialization of a Binary Tree JavaScript Medium
329 Longest Increasing Path in a Matrix JavaScript Hard
328 Odd Even Linked List JavaScript Medium
326 Power of Three JavaScript Easy
322 Coin Change JavaScript Medium
318 Maximum Product of Word Lengths JavaScript Medium
315 Count of Smaller Numbers After Self JavaScript Hard
312 Burst Balloons JavaScript Hard
307 Range Sum Query - Mutable JavaScript Medium
304 Range Sum Query 2D - Immutable JavaScript Medium
303 Range Sum Query - Immutable JavaScript Easy
300 Longest Increasing Subsequence JavaScript Medium
295 Find Median from Data Stream JavaScript Hard
290 Word Pattern JavaScript Easy
289 Game of Life JavaScript Medium
284 Peeking Iterator JavaScript Medium
283 Move Zeroes JavaScript Easy
278 First Bad Version JavaScript Easy
268 Missing Number JavaScript Easy
263 Ugly Number JavaScript Easy
258 Add Digits JavaScript Easy
242 Valid Anagram JavaScript Easy
240 Search a 2D Matrix II JavaScript Medium
237 Delete Node in a Linked List JavaScript Easy
236 Lowest Common Ancestor of a Binary Tree JavaScript Medium
235 Lowest Common Ancestor of a Binary Search Tree JavaScript Easy
234 Palindrome Linked List JavaScript Easy
231 Power of Two JavaScript Easy
228 Summary Ranges JavaScript Easy
227 Summary Ranges JavaScript Hard
225 Implement Stack using Queues JavaScript Easy
219 Contains Duplicate II JavaScript Easy
217 Contains Duplicate JavaScript Easy
215 Kth Largest Element in an Array JavaScript Medium
209 Minimum Size Subarray Sum JavaScript Easy
206 Reverse Linked List JavaScript Easy
205 Isomorphic Strings JavaScript Easy
204 Count Primes JavaScript Easy
203 Remove Linked List Elements JavaScript Easy
202 Happy Number JavaScript Easy
199 Binary Tree Right Side View JavaScript Medium
198 House Robber JavaScript Medium
195 Tenth Line Shell Easy
191 Number of 1 Bits JavaScript Easy
190 Reverse Bits JavaScript Easy
189 Rotate Array JavaScript Medium
182 Duplicate Emails SQL Easy
172 Factorial Trailing Zeroes JavaScript Easy
171 Excel Sheet Column Number JavaScript Easy
169 Majority Element JavaScript Easy
167 Two Sum II - Input array is sorted JavaScript Easy
164 Maximum Gap JavaScript Hard
162 Find Peak Element JavaScript Medium
160 Intersection of Two Linked Lists JavaScript Easy
155 Min Stack JavaScript Easy
154 Find Minimum in Rotated Sorted Array JavaScript Hard
153 Find Minimum in Rotated Sorted Array JavaScript Medium
152 Maximum Product Subarray JavaScript Medium
150 Evaluate Reverse Polish Notation JavaScript Medium
141 Linked List Cycle JavaScript Easy
138 Copy List with Random Pointer JavaScript Medium
136 Single Number JavaScript Easy
135 Candy JavaScript Hard
132 Palindrome Partitioning II JavaScript Hard
131 Palindrome Partitioning JavaScript Medium
128 Longest Consecutive Sequence JavaScript Medium
127 Word Ladder JavaScript Hard
126 Word Ladder II JavaScript Hard
125 Valid Palindrome JavaScript Easy
121 Best Time to Buy and Sell Stock JavaScript Easy
120 Triangle JavaScript Medium
119 Pascal's Triangle II JavaScript Easy
118 Pascal's Triangle JavaScript Easy
116 Populating Next Right Pointers in Each Node JavaScript Medium
114 Flatten Binary Tree to Linked List JavaScript Medium
113 Path Sum II JavaScript Medium
112 Path Sum JavaScript Easy
110 Balanced Binary Tree JavaScript Easy
109 Convert Sorted List to Binary Search Tree JavaScript Medium
108 Convert Sorted Array to Binary Search Tree JavaScript Easy
105 Construct Binary Tree from Preorder and Inorder Traversal JavaScript Medium
104 Maximum Depth of Binary Tree JavaScript Easy
102 Binary Tree Level Order Traversal JavaScript Medium
100 Same Tree JavaScript Easy
98 Validate Binary Search Tree JavaScript Medium
97 Interleaving String JavaScript Medium
92 Reverse Linked List II JavaScript Medium
91 Decode Ways JavaScript Medium
90 Subsets II JavaScript Medium
89 Gray Code JavaScript Medium
88 Merge Sorted Array JavaScript Easy
86 Partition List JavaScript Medium
83 Remove Duplicates from Sorted List JavaScript Easy
82 Remove Duplicates from Sorted List II JavaScript Medium
80 Remove Duplicates from Sorted Array II JavaScript Medium
77 Combinations JavaScript Medium
74 Search a 2D Matrix JavaScript Medium
73 Set Matrix Zeroes JavaScript Medium
71 Simplify Path JavaScript Medium
70 Climbing Stairs JavaScript Easy
69 Sqrt(x) JavaScript Easy
67 Add Binary JavaScript Easy
66 Plus One JavaScript Easy
65 Valid Number JavaScript Hard
63 Unique Paths II JavaScript Medium
58 Length of Last Word JavaScript Easy
56 Merge Intervals JavaScript Medium
54 Spiral Matrix JavaScript Medium
53 Maximum Subarray JavaScript Easy
52 N-Queens II JavaScript Hard
51 N-Queens JavaScript Hard
49 Group Anagrams JavaScript Medium
48 Rotate Image JavaScript Medium
46 Permutations JavaScript Medium
45 Jump Game II JavaScript Medium
43 Multiply Strings JavaScript Medium
42 Trapping Rain Water JavaScript Hard
41 First Missing Positive JavaScript Hard
35 Search Insert Position JavaScript Easy
34 Find First and Last Position of Element in Sorted Array JavaScript Medium
32 Longest Valid Parentheses JavaScript Hard
31 Next Permutation JavaScript Medium
29 Divide Two Integers JavaScript Medium
28 Implement strStr() JavaScript Easy
27 Remove Element JavaScript Easy
26 Remove Duplicates from Sorted Array JavaScript Easy
25 Reverse Nodes in k-Group JavaScript Hard
24 Swap Nodes in Pairs JavaScript Medium
23 Merge k Sorted Lists JavaScript Hard
22 Generate Parentheses JavaScript Medium
21 Merge Two Sorted Lists JavaScript Easy
20 Valid Parentheses JavaScript Easy
19 Remove Nth Node From End of List JavaScript Medium
18 4Sum JavaScript Medium
17 Letter Combinations of a Phone Number JavaScript Medium
16 3Sum Closest JavaScript Medium
15 3Sum JavaScript Medium
14 Longest Common Prefix JavaScript Easy
13 Roman to Integer JavaScript Easy
12 Integer to Roman JavaScript Medium
11 Container With Most Water JavaScript Medium
9 Palindrome Number JavaScript Easy
8 String to Integer (atoi) JavaScript Medium
7 Reverse Integer JavaScript Easy
5 Longest Palindromic Substring JavaScript Medium
4 Median of Two Sorted Arrays JavaScript Hard
3 Longest Substring Without Repeating Characters JavaScript Medium
2 Add Two Numbers JavaScript Medium
1 Two Sum JavaScript Easy

About

🌟 LeetCode solutions in JavaScript

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published