Skip to content

Repository files navigation

Practice-Coding-Questions

Personal Practice Set - Doing One a Day (sometimes) in a Variety of Languages (Mostly Python)!

forthebadge


Leetcode

#DifficultyProblemSolution
1EasyTwo SumJava, Python, Ruby
2MediumAdd Two NumbersC
3MediumLongest Substring Without Repeating CharactersPython
4HardMedian of Two Sorted ArraysPython
5MediumLongest Palindromic SubstringPython
6MediumZig Zag ConversionJava
7EasyReverse IntegerPython
8MediumString to IntegerRuby
9EasyPalindrome NumberC, Java, Python, Swift
10HardRegular Expression MatchingPython
11MediumContainer With Most WaterPython
12MediumInteger to RomanPython
13EasyRoman to IntegerC, Python
14EasyLongest Common PrefixPython
15Medium3SumPython
16Medium3Sum ClosestPython
17MediumLetter Combinations of a Phone NumberPython
18Medium4SumPython
19MediumRemove Nth Node From End of ListPython
20EasyValid ParenthesesJava, Python
21EasyMerge Two Sorted ListsJava, Python
22MediumGenerate ParenthesesPython
23HardMerge k Sorted ListsPython
24MediumSwap Node in PairsPython
25HardReverse Nodes in k-GroupPython
26EasyRemove Duplicates from Sorted ArrayC, Python
27EasyRemove ElementPython
28EasyImplement strStr()C, Python
29MediumDivide Two IntegersPython
31MediumNext PermutationPython
33MediumSearch in Rotated Sorted ArrayPython
34MediumFind First and Last Position of Element in Sorted ArrayPython
35EasySearch Insert PositionGo, Java, JavaScript, Scala
36MediumValid SudokuPython
38EasyCount and SayPython
39MediumCombination SumPython
40MediumCombination Sum IIPython
42HardTrapping Rain WaterPython
43MediumMultiply StringsPython
44HardWildcard MatchingPython
46MediumPermutationsPython
47MediumPermutations IIPython
48MediumRotate ImagePython
49MediumGroup AnagramsPython
50MediumPow(x, n)Python
53EasyMaximum SubarrayJava
54MediumSpiral MatrixPython
55MediumJump GamePython
56MediumMerge IntervalsPython
58EasyLength of Last WordPython
62MediumUnique PathsPython
63MediumUnique Paths IIPython
64MediumMinimum Path SumPython
66EasyPlus OnePython
67EasyAdd BinaryPython
69EasySqrt()Python
70EasyClimbing StairsC
76HardMinimum Window SubstringPython
78MediumSubsetsPython
79MediumWord SearchPython
83EasyRemove Duplicates from Sorted ListPython
84HardLargest Rectangle in HistogramPython
85HardMaximal RectanglePython
88EasyMerge Sorted ArrayPython
100EasySame TreePython
101EasySymmetric TreePython
102MediumBinary Tree Level Order TraversalPython
104EasyMaximum Depth of Binary TreePython
105MediumConstruct Binary Tree from Preorder and Inorder TraversalPython
106MediumConstruct Binary Tree from Inorder and Postorder TraversalPython
107EasyBinary Tree Level Order Traversal IIPython
108EasyConvert Sorted Array to Binary Search TreePython
110EasyBalanced Binary TreePython
111EasyMinimum Depth of Binary TreePython
112EasyPath SumPython
118EasyPascal's TrianglePython
121EasyBest Time to Buy and Sell StockPython
122EasyBest Time to Buy and Sell Stock IIPython
123HardBest Time to Buy and Sell Stock IIIPython
125EasyValid PalindromePython
127MediumWord LadderPython
133MediumClone GraphPython
136EasySingle NumberPython
137MediumSingle Number IIPython
139MediumWord BreakPython
141EasyLinked List CyclePython
142MediumLinked List Cycle IIPython
146HardLRU CachePython
148MediumSort ListPython
153MediumFind Minimum in Rotated Sorted ArrayPython
155EasyMin StackPython
162MediumFind Peak ElementPython
168EasyExcel Sheet Column TitlePython
171EasyExcel Sheet Column NumberPython
173MediumBinary Search Tree IteratorPython
188HardBest Time to Buy and Sell Stock IVPython
191EasyNumber of 1 BitsPython
196EasyDelete Duplicate EmailsSQL
200MediumNumber of IslandsPython
204EasyCount PrimesPython
206EasyReverse Linked ListPython
207MediumCourse SchedulePython
208MediumImplement TrieJava, Python
215MediumKth Largest Element in an ArrayPython
218HardThe Skyline ProblemPython
226EasyInvert Binary TreePython
231EasyPower Of TwoPython
234EasyPalindrome Linked ListPython
235EasyLowest Common Ancestor of a Binary Search TreePython
236MediumLowest Common Ancestor of a Binary TreePython
237EasyDelete Node in a Linked ListPython
238MediumProduct of Array Except SelfPython
240MediumSearch a 2D Matrix IIPython
258EasyAdd DigitsPython
268EasyMissing NumberPython
273HardInteger to English WordsPython
283EasyMove ZeroesPython
287MediumFind the Duplicate NumberPython
295HardFind Median from Data StreamPython
297HardSerialize and Deserialize Binary TreeJava
301HardRemove Invalid ParenthesesPython
310MediumMinimum Height TreesPython
341MediumFlatten Nested List IteratorPython
344EasyReverse StringPython
388MediumLongest Absolute File PathPython
389EasyFind the DifferencePython
461EasyHamming DistancePython
495MediumTeemo AttackingPython
535MediumEncode and Decode TinyURLPython
733EasyFlood FillPython
771EasyJewels and StonesPython
1114EasyPrint in OrderPython

SPOJ

#DifficultyProblemSolution
1EasyLife, the Universe, and EverythingC
2
3

Hackerrank

30 Days of Code Challenge

DayDifficultyProblemSolution
0EasyHello, World.Java
1EasyData TypesJava
2EasyOperatorsJava
3EasyConditional StatementsPython
4EasyClass vs InstancePython
5EasyLoopsPython
6EasyLet's ReviewPython
7EasyArraysPython
8EasyDictionaries and MapsPython
9EasyRecursionPython
10EasyBinary NumberPython
11Easy2D ArraysPython
12EasyInheritancePython
13EasyAbstract ClassesPython
14EasyScopePython
15EasyLinked ListPython
16EasyExceptions - String to IntegerPython
17EasyMore ExceptionsPython
18EasyQueues and StacksPython
19EasyInterfacesJava
20EasySortingPython
21EasyGenericsJava
22EasyBinary Search TreesJava
23EasyBST Level-Order TraversalPython
24EasyMore Linked ListsPython
25MediumRunning Time and ComplexityPython
26EasyNested LogicPython
27EasyTestingPython
28MediumRegEx, Patterns, and Intro to DatabasesPython
29MediumBitwise ANDPython

CTCI

Cracking the Coding Interview 6th Edition Python Solutions

#DifficultyProblemSolution
1.1Is UniquePython
1.2Check PermutationPython
1.3URLifyPython
1.4Palindrome PermutationPython
1.5One AwayPython
1.6String CompressionPython
1.7Rotate MatrixPython
1.8Zero MatrixPython
1.9String RotationPython
2.1Remove DupsPython
2.2Return Kth to LastPython
2.3Delete Middle NodePython
2.4PartitionPython
2.5Sum ListsPython
2.6PalindromePython
2.7IntersectionPython
2.8Loop DetectionPython
3.1Three in OnePython
3.2Stack MinPython
3.3Stack of PlatesPython
4.1Route Between NodesPython
4.2Minimal TreePython
4.3List of DepthsPython
4.4Check BalancedPython
4.5Validate BSTPython
4.6SuccessorPython
4.7Build OrderPython
4.8First Common AncestorPython
4.9BST SequencesPython
4.10Check SubtreePython
4.11Random NodePython
4.12Paths With SumPython
5.1InsertionComing Soon
8.1Triple StepPython
8.2Robot in a GridPython
8.3Magic IndexPython
8.4Power SetPython
8.5Recursive MultiplyPython
8.6Towers of Hanoi
8.7Permutations Without DupsPython
8.8Permutations With DupsPython
17.1Add Without PlusPython

Google Foobar Challenge

#LevelProblemSolution
11Solar DoomsdayJava
22Gearing Up For DestructionPython
32Lovely Lucky LambsPython

Releases

Packages

Contributors

Languages