Skip to content

In this repository, I store my LeetCode solved problems.

License

Notifications You must be signed in to change notification settings

dpetrosy/LeetCode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


đź“ś About Repository

In this repository, I store my solved LeetCode problems.

đź“‘ Problem List

# TITLE DESCRIPTION SOLUTION
01 Two Sum EN Description Solution
03 Longest Substring Without Repeats EN Description Solution
08 String to Integer (atoi) EN Description Solution
09 Palindrome Number EN Description Solution
12 Integer to Roman EN Description Solution
13 Roman to Integer EN Description Solution
14 Longest Common Prefix EN Description Solution
19 Remove Nth Node From End of List EN Description Solution
20 Valid Parentheses EN Description Solution
26 Remove Duplicates from Sorted Array EN Description Solution
27 Remove Element EN Description Solution
28 Find the Index of the First Occurrence EN Description Solution
35 Search Insert Position EN Description Solution
50 Pow(x, n) EN Description Solution
56 Merge Intervals EN Description Solution
58 Length of Last Word EN Description Solution
66 Plus One EN Description Solution
69 Sqrt(x) EN Description Solution
70 Climbing Stairs EN Description Solution
75 Sort Colors EN Description Solution
83 Remove Duplicates from Sorted List EN Description Solution
88 Merge Sorted Array EN Description Solution
94 Binary Tree Inorder Traversal EN Description Solution
100 Same Tree EN Description Solution
102 Binary Tree Level Order Traversal EN Description Solution
104 Maximum Depth of Binary Tree EN Description Solution
108 Convert Sorted Array to Binary Tree EN Description Solution
110 Balanced Binary Tree EN Description Solution
111 Minimum Depth of Binary Tree EN Description Solution
112 Path Sum EN Description Solution
118 Pascal's Triangle EN Description Solution
125 Valid Palindrome EN Description Solution
136 Single Number EN Description Solution
141 Linked List Cycle EN Description Solution
144 Binary Tree Preorder Traversal EN Description Solution
145 Binary Tree Postorder Traversal EN Description Solution
155 Min Stack EN Description Solution
168 Excel Sheet Column Title EN Description Solution
169 Majority Element EN Description Solution
171 Excel Sheet Column Number EN Description Solution
189 Rotate Array EN Description Solution
190 Reverse Bits EN Description Solution
191 Number of 1 Bits EN Description Solution
198 House Robber EN Description Solution
202 Happy Number EN Description Solution
203 Remove Linked List Elements EN Description Solution
206 Reverse Linked List EN Description Solution
217 Contains Duplicate EN Description Solution
226 Invert Binary Tree EN Description Solution
231 Power of Two EN Description Solution
237 Delete Node in a Linked List EN Description Solution
242 Valid Anagram EN Description Solution
257 Binary Tree Paths EN Description Solution
258 Add Digits EN Description Solution
263 Ugly Number EN Description Solution
268 Missing Number EN Description Solution
278 First Bad Version EN Description Solution
283 Move Zeroes EN Description Solution
292 Nim Game EN Description Solution
322 Coin Change EN Description Solution
326 Power of Three EN Description Solution
338 Counting Bits EN Description Solution
342 Power of Four EN Description Solution
344 Reverse String EN Description Solution
345 Reverse Vowels of a String EN Description Solution
349 Intersection of Two Arrays EN Description Solution
350 Intersection of Two Arrays II EN Description Solution
367 Valid Perfect Square EN Description Solution
374 Guess Number Higher or Lower EN Description Solution
383 Ransom Note EN Description Solution
402 Remove K Digits EN Description Solution
404 Sum of Left Leaves EN Description Solution
409 Longest Palindrome EN Description Solution
412 Fizz Buzz EN Description Solution
495 Teemo Attacking EN Description Solution
509 Fibonacci Number EN Description Solution
520 Detect Capital EN Description Solution
541 Reverse String II EN Description Solution
543 Diameter of Binary Tree EN Description Solution
557 Reverse Words in a String III EN Description Solution
572 Subtree of Another Tree EN Description Solution
605 Can Place Flowers EN Description Solution
654 Maximum Binary Tree EN Description Solution
701 Insert into a Binary Search Tree EN Description Solution
704 Binary Search EN Description Solution
709 To Lower Case EN Description Solution
746 Min Cost Climbing Stairs EN Description Solution
771 Jewels and Stones EN Description Solution
876 Middle of the Linked List EN Description Solution
917 Reverse Only Letters EN Description Solution
945 Minimum Increment Make Array Unique EN Description Solution
977 Squares of a Sorted Array EN Description Solution
1002 Find Common Characters EN Description Solution
1025 Divisor Game EN Description Solution
1051 Height Checker EN Description Solution
1114 Print in Order EN Description Solution
1115 Print FooBar Alternately EN Description Solution
1116 Print Zero Even Odd EN Description Solution
1117 Building H2O EN Description Solution
1122 Relative Sort Array EN Description Solution
1275 Find Winner on a Tic Tac Toe Game EN Description Solution
1448 Count Good Nodes in Binary Tree EN Description Solution
1470 Shuffle the Array EN Description Solution
1689 Partitioning Into Deci-Binary Numbers EN Description Solution
1929 Concatenation of Array EN Description Solution
1979 Find Greatest Common Divisor of Array EN Description Solution
2037 Minimum Moves to Seat Everyone EN Description Solution
2095 Delete the Middle Node of a Linked List EN Description Solution
2129 Capitalize the Title EN Description Solution
2194 Cells in a Range on an Excel Sheet EN Description Solution
2224 Minimum Number to Convert Time EN Description Solution
2248 Intersection of Multiple Arrays EN Description Solution
2315 Count Asterisks EN Description Solution
2347 Best Poker Hand EN Description Solution
2404 Most Frequent Even Element EN Description Solution
2413 Smallest Even Multiple EN Description Solution
2427 Number of Common Factors EN Description Solution
2446 Determine if Two Events Have Conflict EN Description Solution
2469 Convert the Temperature EN Description Solution
2481 Minimum Cuts to Divide a Circle EN Description Solution
2520 Count the Digits That Divide a Number EN Description Solution
2525 Categorize Box According to Criteria EN Description Solution
2540 Minimum Common Value EN Description Solution
2579 Count Total Number of Colored Cells EN Description Solution
2807 Insert GCD in Linked List EN Description Solution
2810 Faulty Keyboard EN Description Solution
2848 Points That Intersect With Cars EN Description Solution
3024 Type of Triangle EN Description Solution
3065 Minimum Operations Threshold Value I EN Description Solution
3110 Score of a String EN Description Solution