Link

LeetCode Question with Detailed Answers

The following table are the LeetCode questions that I have been solved.

View By Level View By Topic View By Number


Problem Menu

No.Question NumberQuestionLevelTopicDate
146PermutationsMediumBacktracking2021-04-29
25Longest Palindromic SubstringMediumDP2021-01-24
34Median of Two Sorted ArraysHardBinary Search2021-01-23
43Longest Substring Without Repeating CharactersMediumTwo Pointers2021-01-22
52Add Two NumbersMediumLinked List2021-01-21
61Two SumEasyHash Table2021-01-20
71290Convert Binary Number in a Linked List to IntegerEasyBit Manipulation2020-11-01
8252Meeting RoomsEasyGreedy2020-10-31
9253Meeting Rooms IIMediumGreedy2020-10-30
10213House Robber IIMediumDP2020-10-14
1121Merge Two Sorted ListsEasyLinked List2020-10-13
121616Split Two Strings to Make PalindromeMediumGreedy2020-10-13
13859Buddy StringsEasyString2020-10-12
14449Serialize and Deserialize BSTMediumTree2020-10-11
151081Smallest Subsequence of Distinct CharactersMediumGreedy2020-10-10
16316Remove Duplicate LettersMediumGreedy2020-10-09
17704Binary SearchEasyBinary Search2020-10-08
1861Rotate ListMediumLinked List2020-10-07
19701Insert into a Binary Search TreeMediumTree2020-10-06
201009Complement of Base 10 IntegerEasyBit Manipulation2020-10-05
2139Combination SumMediumBacktracking2020-10-04
22476Number ComplementEasyBit Manipulation2020-10-03
23170Two Sum III - Data structure designEasyHash Table2020-10-02
24452Minimum Number of Arrows to Burst BalloonsMediumGreedy2020-10-01
25148Sort ListMediumLinked List2020-09-30
26198House RobberEasyDP2020-09-29
27949Largest Time for Given DigitsEasyMath2020-09-01
28518Coin Change 2MediumDP2020-06-07
29406Queue Reconstruction by HeightMediumGreedy2020-06-06
301472Design Browser HistoryMediumDesign2020-06-06
311471The k Strongest Values in an ArrayMediumArray2020-06-06
321470Shuffle the ArrayEasyArray2020-06-06
33528Random Pick with WeightMediumBinary Search2020-06-05
34344Reverse StringEasyTwo Pointers2020-06-04
351029Two City SchedulingEasyGreedy2020-06-03
36965Univalued Binary TreeEasyTree2020-06-02
37237Delete Node in a Linked ListEasyLinked List2020-06-02
38226Invert Binary TreeEasyTree2020-06-01
3972Edit DistanceHardDP2020-05-31
401466Reorder Routes to Make All Paths Lead to the City ZeroMediumTree2020-05-31
411465Maximum Area of a Piece of Cake After Horizontal and Vertical CutsMediumArray2020-05-31
421464Maximum Product of Two Elements in an ArrayEasyArray2020-05-31
43973K Closest Points to OriginMediumSort2020-05-30
44260Single Number IIIMediumBit Manipulation2020-05-30
45207Course ScheduleMediumTopological Sort2020-05-29
46137Single Number IIMediumBit Manipulation2020-05-29
47136Single NumberEasyBit Manipulation2020-05-29
48338Counting BitsMediumBit Manipulation2020-05-28
49231Power of TwoEasyBit Manipulation2020-05-28
50191Number of 1 BitsEasyBit Manipulation2020-05-28
51190Reverse BitsEasyBit Manipulation2020-05-28
52886Possible BipartitionMediumGraph2020-05-27
53785Is Graph Bipartite?MediumGraph2020-05-27
54525Contiguous ArrayMediumHash Table2020-05-26
55325Maximum Size Subarray Sum Equals kMediumHash Table2020-05-26
561143Longest Common SubsequenceMediumDP2020-05-25
571035Uncrossed LinesMediumDP2020-05-25
58266Palindrome PermutationEasyHash Table2020-05-24
591008Construct Binary Search Tree from Preorder TraversalMediumTree2020-05-24
60986Interval List IntersectionsMediumTwo Pointers2020-05-23
611458Max Dot Product of Two SubsequencesHardDP2020-05-23
621457Pseudo-Palindromic Paths in a Binary TreeMediumTree2020-05-23
631456Maximum Number of Vowels in a Substring of Given LengthMediumSliding Window2020-05-23
641455Check If a Word Occurs As a Prefix of Any Word in a SentenceEasyString2020-05-23
65451Sort Characters By FrequencyMediumHash Table2020-05-22
66221Maximal SquareMediumDP2020-05-21
671277Count Square Submatrices with All OnesMediumDP2020-05-21
68230Kth Smallest Element in a BSTMediumBinary Search2020-05-20
69901Online Stock SpanMediumStack2020-05-19
70567Permutation in StringMediumHash Table2020-05-18
71438Find All Anagrams in a StringMediumHash Table2020-05-17
72328Odd Even Linked ListMediumLinked List2020-05-16
731452People Whose List of Favorite Companies Is Not a Subset of Another ListMediumString2020-05-16
741451Rearrange Words in a SentenceMediumString2020-05-16
751450Number of Students Doing Homework at a Given TimeEasyArray2020-05-16
76121Best Time to Buy and Sell StockEasyDP2020-05-16
77918Maximum Sum Circular SubarrayMediumArray2020-05-15
7853Maximum SubarrayEasyDP2020-05-15
79208Implement Trie (Prefix Tree)MediumTrie2020-05-14
80402Remove K DigitsMediumStack2020-05-13
81540Single Element in a Sorted ArrayMediumBinary Search2020-05-12