Skip to content
/ LeetCode Public

⭐ This is my repo for solutions to Leetcode programming puzzles.

Notifications You must be signed in to change notification settings

aflr/LeetCode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation


🚀 Problems from LeetCode solved in order to gain experience in languages such as JavaScript, C, Java, PL/SQL, and to consolidate my knowledge of data structures and programming techniques such as Array, Linked List, Binary Search, Backtracking, Stack, Tree, DFS, BFS, Graph, Trie, Recursion, Queue, Sliding Window, etc.



ID Title Solution Acceptance rate
1 Two Sum C, Java, JavaScript 50.5%
2 Add Two Numbers C 41.8%
3 Longest Substring Without Repeating Characters JavaScript 34.3%
4 Median of Two Sorted Arrays JavaScript 38.8%
5 Longest Palindromic Substring JavaScript 33.4%
6 Zigzag Conversion JavaScript 46.7%
7 Reverse Integer Java, JavaScript 27.8%
8 String to Integer (atoi) C, JavaScript 16.7%
9 Palindrome Number Java, JavaScript 54.3%
10 Regular Expression Matching Java, JavaScript 27.9%
11 Container With Most Water C, Java, JavaScript 54.1%
12 Integer to Roman JavaScript 63.8%
13 Roman to Integer JavaScript 60.2%
14 Longest Common Prefix JavaScript 42.0%
15 3Sum JavaScript 34.9%
17 Letter Combinations of a Phone Number JavaScript 59.5%
19 Remove Nth Node From End of List Java 42.3%
20 Valid Parenthesis C, JavaScript 40.2%
21 Merge Two Sorted Lists Java 63.1%
23 Merge k Sorted Lists C 51.6%
24 Swap Nodes in Pairs C, JavaScript 64.8%
25 Reverse Nodes in k-Group Java, JavaScript 60.0%
26 Remove Duplicates from Sorted Array Java, JavaScript 52.9%
27 Remove Element Java, JavaScript 54.4%
28 Find the Index of the First Occurrence in a String C, Java 40.3%
29 Divide Two Integers Java, JavaScript 17.1%
35 Search Insert Position JavaScript 46.6%
36 Valid Sudoku Java 58.6%
37 Sudoku Solver Java 59.1%
38 Count and Say JavaScript 53.9%
41 First Missing Positive JavaScript 37.6%
42 Trapping Rain Water Java, JavaScript 60.2%
43 Multiply Strings Java 40.8%
48 Rotate Image C, JavaScript 72.4%
50 Pow(x, n) C, Java, JavaScript 34.0%
52 N-Queens II C, Java, JavaScript 72.5%
58 Length of Last Word Java 45.7%
61 Rotate List C 37.1%
62 Unique Paths Java, JavaScript 63.6%
64 Minimum Path Sum Java, JavaScript 62.8%
66 Plus One Java 44.1%
67 Add Binary Java, Python3 52.6%
69 Sqrt(x) Java, JavaScript, PHP 37.8%
70 Climbing Stairs Java 53.1%
71 Simplify Path JavaScript 41.4%
94 Binary Tree Inorder Traversal Java 74.7%
100 Same Tree C, Dart, JavaScript 59.4%
104 Maximum Depth of Binary Tree C, Java 74.4%
112 Path Sum C, JavaScript 49.6%
118 Pascal's Triangle Java 72.5%
125 Valid Palindrome JavaScript 46.4%
136 Single Number Java, JavaScript 71.5%
141 Linked List Cycle C, Java, JavaScript 48.6%
145 Binary Tree Postorder Traversal Java 73.2%
155 Min Stack Java 52.9%
160 Intersection of Two Linked Lists Java 55.7%
176 Second Highest Salary PL/SQL 38.8%
189 Rotate Array C 39.8%
190 Reverse Bits C, C++, Java, JavaScript 57.1%
191 Number of 1 Bits C, Java 69.9%
193 Valid Phone Numbers Bash 25.8%
194 Transpose File Bash 25.7%
195 Tenth Line Bash 32.9%
200 Number of Islands Java 57.7%
206 Reverse Linked List C, JavaScript 74.6%
215 Kth Largest Element in an Array Java, JavaScript 67.2%
217 Contains Duplicate C, Java, JavaScript 61.0%
226 Invert Binary Tree C, JavaScript 77.5%
231 Power of Two C, JavaScript 46.3%
232 Implement Queue using Stacks Java 65.7%
238 Product of Array Except Self Java, JavaScript 65.0%
242 Valid Anagram Java 63.2%
268 Missing Number JavaScript 65.1%
273 Integer to English Words JavaScript 30.5%
300 Longest Increasing Subsequence JavaScript 53.6%
338 Counting Bits C, JavaScript 77.4%
342 Power of Four C 47.7%
344 Reverse String JavaScript 77.2%
383 Ransom Note JavaScript 59.3%
405 Convert a Number to Hexadecimal JavaScript 47.8%
414 Third Maximum Number JavaScript 34.5%
442 Find All Duplicates in an Array JavaScript 75.5%
455 Assign Cookies JavaScript 49.7%
476 Number Complement Java 70.2%
590 N-ary Tree Postorder Traversal Java 80.0%
592 Fraction Addition and Subtraction Java 61.1%
633 Sum of Square Numbers JavaScript 36.2%
661 Image Smoother JavaScript 66.8%
674 Longest Continuous Increasing Subsequence JavaScript 49.7%
725 Split Linked List in Parts Java 68.1%
844 Backspace String Compare JavaScript 49.1%
856 Score of Parenthesis Java 64.4%
876 Middle of the Linked List C, JavaScript 76.5%
922 Sort Array By Parity II JavaScript 70.7%
1002 Find Common Characters JavaScript 73.1%
1009 Complement of Base 10 Integer Java 60.7%
1021 Remove Outermost Parentheses JavaScript 81.9%
1148 Article Views I PL/SQL 74.8%
1207 Unique Number of Occurrences JavaScript 76.5%
1578 Minimum Time to Make Rope Colorful JavaScript 63.2%
1903 Largest Odd Number in String JavaScript 63.6%
1945 Sum of Digits of String After Convert Java 74.7%
1971 Find if Path Exists in Graph Java, JavaScript 53.0%
2053 Kth Distinct String in an Array Java 80.2%
2124 Check if All A's Appears Before All B's Java, JavaScript, PHP 71.3%
2235 Add Two Integers JavaScript, Swift 87.5%
2356 Number of Unique Subjects Taught by Each Teacher MySQL 87.5%
2418 Sort the People JavaScript 84.9%
2419 Longest Subarray With Maximum Bitwise AND Java, JavaScript 58.5%
2452 Words Within Two Edits of Dictionary Java 60.3%
2469 Convert the Temperature Java 88.7%
2591 Distribute Money to Maximum Children Java 18.7%
2618 Check if Object Instance of Class JavaScript 29.2%
2620 Counter JavaScript 80.3%
2621 Sleep JavaScript 85.1%
2634 Filter Elements from Array JavaScript 83.3%
2666 Allow One Function Call JavaScript 86.0%
2667 Create Hello World Function JavaScript 80.2%
2695 Array Wrapper JavaScript 87.6%
2703 Return Length of Arguments Passed JavaScript 92.7%
2704 To Be Or Not To Be JavaScript 61.5%
2706 Buy Two Chocolates JavaScript, PHP 70.6%
2715 Timeout Cancellation JavaScript 87.1%
2723 Add Two Promises JavaScript 90.1%
2724 Sort By JavaScript 81.6%
2727 Is Object Empty JavaScript 77.7%
2798 Number of Employees Who Met the Target JavaScript 87.5%
2816 Double a Number Represented as a Linked List C 47.6%
2828 Check if a String Is an Acronym of Words JavaScript 83.3%
2833 Furthest Point From Origin Java, JavaScript 61.9%
2870 Minimum Number of Operations to Make Array Empty Java 49.4%
2879 Display the First Three Rows Pandas (Python) 92.1%
3019 Number of Changing Keys Java, JavaScript 79.3%