Skip to content

alexwawl/leetcode-solutions-javascript-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 

Repository files navigation

leetcode-solutions-javascript-python

My Leetcode Solutions (125+): JavaScript and Python

Problem Name Description Difficulty Rating Notes
#1 Two Sum leetcode.com Easy JS (99.48%) Python (97.89%) JavaScript and Python
#2 Add Two Numbers leetcode.com Medium JS (61.87%) Python (84.13%) JavaScript and Python
#3 Longest Substring Without Repeating Characters leetcode.com Medium JS (86.63%) Python (54.11%) JavaScript and Python
#7 Reverse Integer leetcode.com Easy JS (64.56%) JavaScript
#9 Palindrome Number leetcode.com Easy Python (54.57%) Python
#11 Container With Most Water leetcode.com Medium JS(Top 98.99%) Python (Top 70.32%) JavaScript and Python
#13 Roman To Integer leetcode.com Easy Python(99.62%) Python
#15 3Sum leetcode.com Medium JS(95.57%) Python(59.85%) JavaScript and Python
#17 Letter Combinations of a Phone Number leetcode.com Medium JS(Top 72.81%) Python(Top 94.52%) JavaScript and Python
#18 4Sum leetcode.com Medium JS(60.02%) Python(14.91%) JavaScript and Python
#20 Valid Parentheses leetcode.com Easy JS(84.99%) Python(32.05%) JavaScript and Python
#21 Merge Two Sorted Lists leetcode.com Easy JS(99.94%) JavaScript
#22 Generate Parentheses leetcode.com Medium JS(71.09%) Python(94.45%) JavaScript and Python
#23 Merge k Sorted Lists leetcode.com Hard JS(99.71%) JavaScript
#24 Swap Nodes in Pairs leetcode.com Medium JS(81.61%) Python(Top 51.98%) JavaScript and Python
#26 Remove Duplicates from Sorted Array leetcode.com Easy JS(Top 61.78%) JavaScript
#27 Remove Element leetcode.com Easy Python(66.30%) Python
#28 Implement strStr() leetcode.com Easy Python(82.82%) Python
#33 Search in Rotated Sorted Array leetcode.com Medium JavaScript(Top 95.68%) Python(Top 7.72%) JavaScript and Python
#36 Valid Sudoku leetcode.com Medium JS(61.21%) Python(82.75%) JavaScript and Python
#37 Sudoku Solver leetcode.com Hard JS(67.8%) JavaScript
#39 Combination Sum leetcode.com Medium JS(78.56%) Python( 53.13%) JavaScript and Python
#40 Combination Sum II leetcode.com Medium JS(75.16%) Python( 50.44%) JavaScript and Python
#46 Permutations leetcode.com Medium JS(66.15%) Python(Top 64.96%) JavaScript and Python
#47 Permutations II leetcode.com Medium Python(99.66%) Python
#49 Group Anagrams leetcode.com Medium JS(31.29%) Python( 99.37%) JavaScript and Python
#50 Pow(x, n) leetcode.com Medium JS(91.76%) Python(94.30%) JavaScript and Python
#51 N-Queens leetcode.com Hard JS(14.9%) JavaScript
#52 N-Queens II leetcode.com Hard JS(8.65%) JavaScript
#53 Maximum Subarray leetcode.com Easy JS(95.13%) JavaScript
#56 Merge Intervals leetcode.com Medium JS(68.69%) JavaScript
#67 Add Binary leetcode.com Easy JS(Top 84.94%) Python(Top 38.72%) JavaScript and Python
#70 Climbing Stairs leetcode.com Easy JS(71.61%) JavaScript
#77 Combinations leetcode.com Medium JS(98.68%) JavaScript
#79 Word Search leetcode.com Medium JS(88.08%) Python (62.27%) JavaScript and Python
#81 Search in Rotated Sorted Array II leetcode.com Medium JS(27.12%) JavaScript
#83 Remove Duplicates from Sorted List leetcode.com Easy JS(80,44%) JavaScript
#88 Merge Sorted Array leetcode.com Easy JS(99.92%) JavaScript
#91 Decode Ways leetcode.com Medium JS(92.51%) JavaScript
#94 Binary Tree Inorder Traversal leetcode.com Medium JS(57.42%) Python(93.23%) JavaScript and Python
#98 Validate Binary Search Tree leetcode.com Medium JS(72.31%) Python(94.45%) JavaScript and Python
#100 Same Tree leetcode.com Easy JS(53.44%) JavaScript
#101 Symmetric Tree leetcode.com Easy JS(96.58%) JavaScript
#102 Binary Tree Level Order Traversal leetcode.com Medium JS(97.23%) Python(55.22%) JavaScript and Python
#104 Maximum Depth of Binary Tree leetcode.com Easy JS(78.07%) Python(55.77%) JavaScript and Python
#107 Binary Tree Level Order Traversal II leetcode.com Easy JS(29.02%) JavaScript
#108 Convert Sorted Array to Binary Search Tree leetcode.com Easy JS(45.73%) JavaScript
#110 Balanced Binary Tree leetcode.com Easy JS(86.14%) JavaScript
#111 Minimum Depth of Binary Tree leetcode.com Easy JS(82.75%) Python(91.92%) JavaScript and Python
#112 Path Sum leetcode.com Easy JS(87.11%) JavaScript
#116 Populating Next Right Pointers in Each Node leetcode.com Medium JS(91.90%) JavaScript
#118 Pascal's Triangle leetcode.com Easy JS(90.70%) JavaScript
#119 Pascal's Triangle II leetcode.com Easy JS(57.75%) JavaScript
#125 Valid Palindrome leetcode.com Easy JS(96.54%) JavaScript
#127 Word Ladder leetcode.com Medium JS(91.07%) Python(91.14%) JavaScript and Python
#136 Single Number leetcode.com Easy JS(58.82%) JavaScript
#138 Copy List with Random Pointer leetcode.com Medium JS(55.83%) JavaScript
#144 Binary Tree Preorder Traversal leetcode.com Medium JS(57.81%) Python(94.20%) JavaScript and Python
#145 Binary Tree Postorder Traversal leetcode.com Hard JS(98.13%) Python(94.33%) JavaScript and Python
#146 LRU Cache leetcode.com Medium JS(82.68%) JavaScript
#148 Sort List leetcode.com Medium JS(28.01%) JavaScript
#153 Find Minimum in Rotated Sorted Array leetcode.com Medium JS(64.09%) Python(86.18%) JavaScript and Python
#160 Intersection of Two Linked Lists leetcode.com Easy JS(58.10%) JavaScript
#167 Two Sum II - Input array is sorted leetcode.com Easy JS(97.58%) JavaScript
#173 Binary Search Tree Iterator leetcode.com Medium JS(97.90%) JavaScript
#199 Binary Tree Right Side View leetcode.com Medium JS(81.90%) Python(86.12%) JavaScript and Python
#200 Number of Islands leetcode.com Medium JS(81.90%) Python(86.12%) JavaScript and Python
#206 Reverse Linked List leetcode.com Easy JS(81.51%) JavaScript
#215 Kth Largest Element in an Array leetcode.com Medium JS(51.54%) JavaScript
#226 Invert Binary Tree leetcode.com Easy JS(93.18%) JavaScript
#230 Kth Smallest Element in a BST leetcode.com Medium JS(54.47%) JavaScript
#235 Lowest Common Ancestor of a Binary Search Tree leetcode.com Easy JS(91.39%) JavaScript
#236 Lowest Common Ancestor of a Binary Tree leetcode.com Medium JS(71.28%) JavaScript
#240 Search a 2D Matrix II leetcode.com Medium JS(26.79%) Python(18.34%) JavaScript and Python
#242 Valid Anagram leetcode.com Easy JS(82.84%) JavaScript
#257 Binary Tree Paths leetcode.com Easy JS(40.82%) JavaScript
#283 Move Zeros leetcode.com Easy JS(98.65%) JavaScript
#287 Find the Duplicate Number leetcode.com Medium JS(44.29%) JavaScript
#289 Game of Life leetcode.com Medium JS(98.20%) JavaScript
#297 Serialize and Deserialize Binary Tree leetcode.com Hard JS(25.80%) JavaScript
#300 Longest Increasing Subsequence leetcode.com Medium JS(77.13%) JavaScript
#322 Coin Change leetcode.com Medium JS(41.77%) JavaScript
#326 Power of Three leetcode.com Easy JS(50.52%) JavaScript
#334 Increasing Triplet Subsequence leetcode.com Medium JS(91.61%) JavaScript
#344 Reverse String leetcode.com Easy JS(10.58%) JavaScript. Recursivly
#345 Reverse Vowels of a String leetcode.com Easy JS(88.39%) JavaScript
#347 Top K Frequent Elements leetcode.com Medium JS(88.00%) JavaScript
#349 Intersection of Two Arrays leetcode.com Easy JS(91.83%) JavaScript
#350 Intersection of Two Arrays II leetcode.com Easy JS(85.25%) JavaScript
#387 First Unique Character in a String leetcode.com Easy JS(61.48%) JavaScript
#394 Decode String leetcode.com Medium JS(89.46%) Python(73.61%) JavaScript and Python
#429 N-ary Tree Level Order Traversal leetcode.com Easy JS(96.98%) Python(54.26%) JavaScript and Python
#433 Minimum Genetic Mutation leetcode.com Medium Python(98.71%) Python
#437 Path Sum III leetcode.com Easy JS(75.68%) JavaScript
#451 Sort Characters By Frequency leetcode.com Medium JS(97.48%) JavaScript
#454 4Sum II leetcode.com Medium JS(45.81%) JavaScript
#501 Find Mode in Binary Search Tree leetcode.com Easy JS(40.00%) JavaScript
#509 Fibonacci Number leetcode.com Easy JS(81.12%) JavaScript
#513 Find Bottom Left Tree Value leetcode.com Medium JS(97.14%) Python(79.97%) JavaScript and Python
#530 Minimum Absolute Difference in BST leetcode.com Easy JS(32.40%) JavaScript
#538 Convert BST to Greater Tree leetcode.com Easy JS(81.69%) JavaScript
#559 Maximum Depth of N-ary Tree leetcode.com Easy Python(75.03%) Python
#560 Subarray Sum Equals K leetcode.com Medium JS(73.52%) JavaScript
#589 N-ary Tree Preorder Traversal leetcode.com Easy JS(22.64%) Python(62.73%) JavaScript and Python
#590 N-ary Tree Postorder Traversal leetcode.com Easy JS(47.53%) Python(72.25%) JavaScript and Python
#605 Can Place Flowers leetcode.com Easy JS(90.88%) JavaScript
#617 Merge Two Binary Trees leetcode.com Easy JS(96.71%) JavaScript
#621 Task Scheduler leetcode.com Medium JS(67.13%) JavaScript
#637 Average of Levels in Binary Tree leetcode.com Easy JS(78.31%) JavaScript
#673 Number of Longest Increasing Subsequence leetcode.com Medium JS(75.00%) JavaScript
#692 Top K Frequent Words leetcode.com Medium JS(98.09%) JavaScript
#695 Max Area of Island leetcode.com Medium JS(91.72%) JavaScript
#700 Search in a Binary Search Tree leetcode.com Easy JS(92.30%) JavaScript
#733 Flood Fill leetcode.com Easy Python(50.49%) Python
#767 Reorganize String leetcode.com Medium JS(86.17%) JavaScript
#771 Jewels and Stones leetcode.com Easy JS(37.29%) JavaScript
#779 K-th Symbol in Grammar leetcode.com Medium JS(69.14%) JavaScript
#912 Sort an Array leetcode.com Medium JS(42.60%) JavaScript
#921 Minimum Add to Make Parentheses Valid leetcode.com Medium JS(91.62%) JavaScript
#934 Shortest Bridge leetcode.com Medium JS(57.33%) JavaScript
#938 Range Sum of BST leetcode.com Easy JS(82.50%) JavaScript
#965 Univalued Binary Tree leetcode.com Easy JS(98.63%) JavaScript
#973 K Closest Points to Origin leetcode.com Medium JS(73.38%) JavaScript
#986 Interval List Intersections leetcode.com Medium JS(94.53%) Python(83.35%) JavaScript and Python
#1054 Distant Barcodes leetcode.com Medium JS(73.28%) Python(87.52%) JavaScript and Python
#1091 Shortest Path in Binary Matrix leetcode.com Medium JS(100%) Python(77.66%) JavaScript and Python
#1108 Defanging an IP Address leetcode.com Easy JS(42.88%) JavaScript