Skip to content

sumanth-botlagunta/leetcode-algorithms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

27 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Leetcode Algorithms

Hits made-with-java made-with-python problems-solved problems-solved-java problems-solved-python license PRs Welcome

Problems

# Number Name Difficulty Solution
1 Two Sum Easy Java
7 Reverse Integer Easy Java
9 PalindromeNumber Easy Java
13 Roman To Integer Easy Java
14 Longest Common Prefix Easy Java
20 ValidParentheses Easy Java
21 Merge 2 Sorted Lists Easy Java
26 Remove Duplicates From Sorted Array Easy Java
27 Remove Element Easy Java Python
28 Needle in Haystack Easy Java Python
35 Search Inserted Position Easy Java
38 Count and Say Easy Java
53 Maximum SubArray Easy
58 Length of Last Word Easy
66 Plus One Easy
67 Add Binary Easy
69 Sqrt(x) Easy
70 Climbing Stairs Easy
83 Remove Duplicates from Sorted List Easy
88 Merge Sorted Array Easy
100 Same Tree Easy
101 Symmetric Tree Easy
104 Maximum Depth of Binary Tree Easy
107 Binary Tree Level Order Traversal II Easy
108 Convert Sorted Array To Binary Search Tree Easy
110 Balanced Binary Tree Easy
111 Minimum Depth of Binary Tree Easy
112 Path Sum Easy
118 Pascal's Triangle Easy
119 Pascal's Triangle II Easy
121 Best Time to Buy and Sell Stocks Easy
122 Best Time to Buy and Sell Stocks II Easy
125 Valid Palindrome Easy
136 Single Number Easy
141 Linked List Cycle Easy
155 Min Stack Easy
157 Read N Characters Given Read4 Easy
160 Intersection of Two Linked Lists Easy
167 Two Sum II - Input Array is Sorted Easy
168 Excel Sheet Column Title Easy
169 Majority Element Easy
170 Two Sum III - Data Structure Design Easy
171 Excel Sheet Column Number Easy
172 Factoring Trailing Zeroes Easy
189 Rotate Array Easy
190 Reverse Bits Easy
191 Number of One Bits Easy
198 House Robber Easy
202 Happy Number Easy
203 Remove Linked List Elements Easy
204 Count Primes Easy
205 Isomorphic Strings Easy
206 Reverse Linked Lists Easy
217 Contains Duplicate Easy
219 Contains Duplicate II Easy
225 Implement Stack using Queues Easy
226 Invert Binary Tree Easy
231 Power of Two Easy
232 Implement Queue Using Stacks Easy
234 Palindrome Linked Lists Easy
235 Lowest Common Ancestor of a Binary Search Tree Easy
237 Delete a Node In A Linked List Easy
242 Valid Anagram Easy
243 Shortest Word Distance Easy
246 Strobogramatic Number Easy
252 Meeting Rooms Easy
256 Paint House Easy
257 Binary Tree Paths Easy
258 Add Digits Easy
263 Ugly Number Easy
266 Palindrome Permutation Easy
268 Missing Number Easy
270 Closest Binary Search Tree Value Easy
276 Paint Fence Easy
278 First Bad Version Easy
283 Move Zeroes Easy
290 Word Pattern Easy
292 Nim Game Easy
293 Flip Game Easy
299 Bulls and Cows Easy
303 Range Sum Query - Immutable Easy
326 Power of Three Easy
339 Nested List Weight Sum Easy
342 Power of Four Easy
344 Reverse A String Easy
345 Reverse Vowels of A String Easy
346 Moving Average From Data Stream Easy
349 Intersection of 2 Arrays Easy
350 Intersection of 2 Arrays II Easy
359 Logger Rate Limiter Easy
367 Valid Perfect Square Easy
374 Guess Number Higher or Lower Easy
383 Ransom Note Easy
387 First Unique Character in String Easy
389 Find the Difference Easy
392 Is Subsequence Easy
401 Binary Watch Easy
404 Sum of Left Leaves Easy
405 Convert a Number to Hexadecimal Easy
408 Valid Word Abbreviation Easy
409 Longest Palindrome Easy
412 Fizz Buzz Easy
414 Third Maximum Number Easy
415 Add Strings Easy
422 Valid Word Square Easy
434 Number of Segments in a String Easy
441 Arranging Coins Easy
443 String Compression Easy
447 Number of Boomerangs Easy
448 Find All Numbers Disappeared in an Array Easy
453 Minimum Moves to Equal Array Elements Easy
455 Assign Cookies Easy
459 Repeated Substring Pattern Easy
461 Hamming Distance Easy
463 Island Perimeter Easy
475 Heaters Easy
476 Number Complement Easy
482 License Key Formatting Easy
485 Max Consecutive Ones Easy
492 Construct the Rectangle Easy
496 Next Greater Element I Easy
500 Keyboard Row Easy
501 Find Mode in Binary Search Tree Easy
504 Base 7 Easy
506 Relative Ranks Easy
507 Perfect Number Easy
509 Fibonacci Number Easy
520 Detect Capital Easy
521 Longest Uncommon Subsequence I Easy
530 Minimum Absolute Difference in BST Easy
532 K - Diff Pairs in Array Easy
538 Convert BST to Greater Tree Easy
541 Reverse String II Easy
543 Diameter of Binary Tree Easy
551 Student Attendance Record I Easy
557 Reverse Words in a String III Easy
559 Maximum Depth of N-Ary Tree Easy
561 Array Partition I Easy
563 Binary Tree Tilt Easy
566 Reshape The Matrix Easy
572 Subtree of Another Tree Easy
575 Distribute Candies Easy
581 Shortest Unsorted Continuous Subarray Easy
589 N-Ary Tree Preorder Traversal Easy
590 N-Ary Tree Postorder Traversal Easy
594 Longest Harmonious Subsequence Easy
598 Range Addition II Easy
599 Minimum Index Sum of 2 Lists Easy
604 Design Compressed String Iterator Easy
605 Can Place Flowers Easy
606 Construct String from Binary Tree Easy
617 Merge Two Binary Trees Easy
624 Maximum Distance in Arrays Easy
628 Maximum Product of Three Numbers Easy
633 Sum Square Numbers Easy
637 Average of Levels in Binary Tree Easy
643 Maximum Average SubArray I Easy
645 Set Mismatch Easy
653 Two Sum IV - Input is a BST Easy
657 Robot Return to Origin Easy
661 Image Smoother Easy
665 Non Deceasing Array Easy
669 Trim a Binary Search Tree Easy
671 Second Minimum Node in Binary Tree Easy
674 Longest Continuous Increasing Subsequence Easy
680 Valid Palindrome II Easy
682 Baseball Game Easy
686 Repeated String Match Easy
687 Longest Univalue Path Easy
690 Employee Importance Easy
693 Binary Number with Alternating Bits Easy
696 Count Binary Substrings Easy
697 Degree of an Array Easy
700 Search in a Binary Search Tree Easy
703 Kth Largest Element in a Stream Easy
704 Binary Search Easy
705 Design HashSet Easy
706 Design HashMap Easy
709 To Lower Case Easy
716 Max Stack Easy
717 1-bit and 2-bit Characters Easy
720 Longest Word in Dictionary Easy
724 Find Pivot Index Easy
728 Self Dividing Numbers Easy
733 Flood Fill Easy
734 Sentence Similarity Easy
744 Find Smallest Letter Greater Than Target Easy
746 Min Cost Climbing Stairs Easy
747 Largest Number at least twize of Others Easy
748 Shortest Completing Word Easy
758 Bold Words in String Easy
760 Find Anagram Mappings Easy
762 Prime Number of Set Bits in Primary Representation Easy
766 Toeplitz Matrix Easy
771 Jewels and Stones Easy
783 Minimum Distance Between BST Nodes Easy
788 Rotated Digits Easy
796 Rotate String Easy
800 Similar RGB Color Easy
804 Unique Morse Code Words Easy
806 Number of Lines to Write String Easy
811 Subdomain Visit Count Easy
812 Largest Triangle Area Easy
819 Most Common Word Easy
821 Shortest Distance to Character Easy
824 Goat Latin Easy
830 Positions of Large Groups Easy
832 Flipping an Image Easy
836 Rectangle Overlap Easy
840 Magic Squares in Grid Easy
844 Backspace String Compare Easy
849 Maximize Distance to Closest Person Easy
852 Peak Index in Mountain Array Easy
859 Buddy Strings Easy
860 Lemonade Change Easy
867 Transpose Matrix Easy
868 Binary Gap Easy
872 Leaf-Similar Trees Easy
874 Walking Robot Simulation Easy
876 Middle of the Linked List Easy
883 Projection Area of 3D Shapes Easy
884 Uncommon Words from 2 Sentences Easy
888 Fair Candy Swap Easy
892 Surface Area of 3D Shapes Easy
893 Groups of Special Equivalent Strings Easy
896 Monotonic Array Easy
897 Increasing Order Search Tree Easy
905 Sort Array by Parity Easy
908 Smallest Range I Easy
914 X of a kind in a Deck of Cards Easy
917 Reverse Only Letters Easy
922 Sort Array by Parity II Easy
925 Long Pressed Name Easy
929 Unique Email Addresses Easy
933 Number of Recent Calls Easy
937 Reorder Data In Log Files Easy
938 Range Sum of BST Easy
941 Valid Mountain Array Easy
942 DI String Match Easy
944 Delete Columns to Make Sorted Easy
949 Largest Time for Given Digits Easy
953 Verifying an Alien Dictionary Easy
961 N-Repeated Elements in Size 2N Array Easy
965 Univalued Binary Tree Easy
970 Powerful Integers Easy
976 Largest Perimeter Triangle Easy
977 Squares of a Sorted Array Easy
985 Sum of Even Numbers after Queries Easy
989 Add to Array Form of Integer Easy
993 Cousins in Binary Tree Easy

About

Solution to LeetCode πŸ’» Algorithms problems.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 80.7%
  • Python 19.0%
  • JavaScript 0.3%