/Leetcode

Leetcode problems & solutions

Primary LanguageJavaScriptMIT LicenseMIT

LeetCode

GitHub license

LeetCode Algorithms

# Title Solution Difficulty
643 Maximum Average Subarray I JavaScript Easy
637 Average of Levels in Binary Tree JavaScript Easy
633 Sum of Square Numbers JavaScript Easy
628 Maximum Product of Three Numbers JavaScript Easy
623 Add One Row to Tree JavaScript Medium
617 Merge Two Binary Trees JavaScript Easy
563 Binary Tree Tilt JavaScript Easy
561 Array Partition I JavaScript Easy
557 Reverse Words in a String III JavaScript Easy
551 Student Attendance Record I JavaScript Easy
543 Diameter of Binary Tree JavaScript Easy
541 Reverse String II JavaScript Easy
532 K-diff Pairs in an Array JavaScript Easy
530 Minimum Absolute Difference in BST JavaScript Easy
524 Longest Word in Dictionary through Deleting JavaScript Medium
520 Detect Capital JavaScript Easy
518 Coin Change 2 JavaScript Medium
515 Find Largest Value in Each Tree Row JavaScript Medium
508 Most Frequent Subtree Sum JavaScript Medium
507 Perfect Number JavaScript Easy
504 Base 7 JavaScript Easy
496 Next Greater Element I JavaScript Easy
482 License Key Formatting JavaScript Medium
476 Number Complement JavaScript Easy
461 Hamming Distance JavaScript Easy
448 Find All Numbers Disappeared in an Array JavaScript Easy
442 Find All Duplicates in an Array JavaScript Medium
434 Number of Segments in a String JavaScript Easy
412 Fizz Buzz JavaScript Easy
409 Longest Palindrome JavaScript Easy
387 First Unique Character in a String JavaScript Easy
344 Reverse String JavaScript Easy
322 Coin Change JavaScript Medium
226 Invert Binary Tree JavaScript Easy
225 Implement Stack using Queues JavaScript Medium
219 Contains Duplicate II JavaScript Easy
217 Contains Duplicate JavaScript Easy
215 Kth Largest Element in an Array JavaScript Medium
206 Reverse Linked List JavaScript Easy
205 Isomorphic Strings JavaScript Easy
203 Remove Linked List Elements JavaScript Easy
202 Happy Number JavaScript Easy
191 Number of 1 Bits JavaScript Easy
190 Reverse Bits JavaScript Easy
171 Excel Sheet Column Number JavaScript Easy
169 Majority Element JavaScript Easy
168 Excel Sheet Column Title JavaScript Easy
167 Two Sum II - Input array is sorted JavaScript Easy
155 Min Stack JavaScript Easy
151 Reverse Words in a String JavaScript Medium
136 Single Number JavaScript Medium
121 Best Time to Buy and Sell Stock JavaScript Easy
119 Pascal's Triangle II JavaScript Easy
118 Pascal's Triangle JavaScript Easy
111 Minimum Depth of Binary Tree JavaScript Easy
108 Convert Sorted Array to Binary Search Tree JavaScript Easy
107 Binary Tree Level Order Traversal II JavaScript Easy
102 Binary Tree Level Order Traversal JavaScript Easy
101 Symmetric Tree JavaScript Easy
94 Binary Tree Inorder Traversal JavaScript Medium
92 Reverse Linked List II JavaScript Medium
88 Merge Sorted Array JavaScript Easy
80 Remove Duplicates from Sorted Array II JavaScript Medium
70 Climbing Stairs JavaScript Easy
69 Sqrt(x) JavaScript Easy
67 Add Binary JavaScript Easy
66 Plus One JavaScript Easy
58 Length of Last Word JavaScript Easy
53 Maximum Subarray JavaScript Easy
50 Pow(x, n) JavaScript Medium
35 Search Insert Position JavaScript Easy
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 Easy
18 4Sum Medium
17 Letter Combinations of a Phone Number JavaScript Medium
16 3Sum Closest Medium
15 3Sum 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
10 Regular Expression Matching JavaScript Hard
9 Palindrome Number JavaScript Easy
8 String to Integer (atoi) JavaScript Easy
7 Reverse Integer JavaScript Easy
6 ZigZag Conversion 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

LeetCode Shell

# Title Solution Difficulty
195 Tenth Line Shell Easy