sharmasapna/Leetcode_Solutions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python solution to Leetcode Questions.
This is a very good platform to learn best practices of python coding.
I am compiling solutions to some questions as I solve and have tried to include as many comments as possible for easy understanding.
(Tip: The best way I think is to print and see what exactly is being executed !)
Just keep Practicing !

#TitleSolutionsDifficultyTagRemarks
1Two SumSolutionEasyhashmapAm,Ad,G,A,M,Bl,U...
2Add Two NumbersSolutionMediumLinked ListAm,Ad,Bl,A,M,G,F,U...
21Merge Two Sorted ListsSolutionEasyLinkedList04Jan21 challenge
35Search Insert PositionSolutionEasyListJune10 challenge
68Text JustificationSolutionHardStringI,G,K,Tl,U,L,R,F,M,A,E
77CombinationsSolutionMediumBacktracking
88Merge Sorted ArraySolutionEasytwo-pointer.
104Maximum Depth of Binary TreeSolutionEasyTree DFS Recursion and iterative.
118Pascal's TriangleSolutionEasyString, DPAm,M,A,Ad,U Y
120TriangleSolutionMediumDP21Apr21 challenge
128Longest Consecutive SequenceSolutionMediumList, SetG,M,A,F,Ad,T,Q
141Linked List CycleSolutionEasytwo-pointer.
167Two Sum II - Input array is sortedSolutionEasytwo-pointer.
175Combine Two TablesSolutionEasySQLAd,Am,Bl,A
176Second Highest SalarySolutionEasySQLAm,A
177Nth Highest SalarySolutionEasySQLAm,Bl,Ad,A,G,Or
181Employees Earning More Than Their ManagersSolutionEasySQLAm,A
184Department Highest SalarySolutionMediumSQLAm,A
185Department Top Three SalariesSolutionHardSQLAm,U,E,F
200Number of IslandsSolutionMediumDFS,MatrixAm,M,B,G,F,L,A,O
226Invert Binary TreeSolutionEasyBinary Search TreeJune01 challenge
231Power of TwoSolutionEasyJune08 challenge
232Implement Queue using StacksSolutionEasyAm,M,A,GS
237Delete Node in a Linked ListSolutionEasyLinked List02June20 challenge
242Valid AnagramSolutionEasyListBl,G,M,U,Am,A,W,J
243Shortest Word DistanceSolutionEasyListL,A,GS,M,U,SF,DD
290Word PatternSolutionEasystring,dictionary.
344Reverse StringSolutionEasyListJune04 challenge
350Intersection of Two Arrays IISolutionEasytwo-pointer.
359Logger Rate LimiterSolutionEasyhash map.
366Find Leaves of Binary TreeSolutionMediumRecursion03Jul21 challenge
377Combination Sum IVSolutionMediumDP19Apr21 challenge
392Is SubsequenceSolutionEasyListJune09 challenge
406Queue Reconstruction by HeightSolutionMediumList06June20 challenge
438Find All Anagrams in a StringSolutionMediumSliding WindowM,Am,F,P,G
451Sort Characters By FrequencySolutionMediumString,Hash Table
474Ones and ZeroesSolutionMediumDP03Apr21 challenge
509Not Boring MoviesSolutionEasyhash map15Apr21 challenge
518Coin Change 2SolutionMediumDynamic ProgrammingJune07 challenge
594Longest Harmonious SubsequenceSolutionEasyHash Table
595Big CountriesSolutionEasySQL
605Can Place FlowersSolutionEasyStringL,F
620Fibonacci NumberSolutionEasy
655Print Binary TreeSolutionMediumBinary Tree
690Employee ImportanceSolutionEasyTreeG,A
700Search in a Binary Search TreeSolutionEasyBinary Search TreeJune15 challenge
703Kth Largest Element in a StreamSolutionEasyHeapqAm,F
796Rotate StringSolutionEasyString
973K Closest Points to OriginSolutionMediumLists, Hash Table
938Range Sum of BSTSolutionEasyTree DFS Iterative
1029Two City SchedulingSolutionEasyList GreedyJune03 challenge
1179Reformat Department TableSolutionEasySQL
1200Minimum Absolute DifferenceSolutionEasyHash Table
1207Unique Number of OccurrencesSolutionEasyHash Table
1209Remove All Adjacent Duplicates in String IISolutionEasystack16Apr21 challenge
1436Destination CitySolutionEasyList
1762Buildings with an ocean viewSolutionMediumListF

About

Python solution to beginners questions

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published