Sai Vignesh Golla
Solutions, approaches, and the notes I revise from.
Every LeetCode and HackerRank problem I have worked through, read straight out of the source files in the repo at build time. The write-up cannot drift away from the code, because the code is the write-up.
- 149
- Problems
- 242
- Solutions
- 4
- Languages
- 38
- Easy
- 90
- Medium
- 21
- Hard
All problems
- #217Contains DuplicateEasy
- #242Valid AnagramEasy
- #1Two SumEasy
- #49Group AnagramsMedium
- #347Top K Frequent ElementsMedium
- #238Product of Array Except SelfMedium
- #36Valid SudokuMedium
- #128Longest Consecutive SequenceMedium
- #125Valid PalindromeEasy
- #167Two Sum II - Input Array Is SortedMedium
- #153SumMedium
- #42Trapping Rain WaterHard
- #567Permutation in StringMedium
- #76Minimum Window SubstringHard
- #239Sliding Window MaximumHard
- #20Valid ParenthesesEasy
- #155Min StackMedium
- #150Evaluate Reverse Polish NotationMedium
- #739Daily TemperaturesMedium
- #853Car FleetMedium
- #84Largest Rectangle in HistogramHard
- #704Binary SearchEasy
- #74Search a 2D MatrixMedium
- #875Koko Eating BananasMedium
- #981Time Based Key-Value StoreMedium
- #206Reverse Linked ListEasy
- #21Merge Two Sorted ListsEasy
- #141Linked List CycleEasy
- #143Reorder ListMedium
- #19Remove Nth Node From End of ListMedium
- #138Copy List with Random PointerMedium
- #2Add Two NumbersMedium
- #287Find the Duplicate NumberMedium
- #146LRU CacheMedium
- #23Merge k Sorted ListsHard
- #25Reverse Nodes in k-GroupHard
- #104Maximum Depth of Binary TreeEasy
- #543Diameter of Binary TreeEasy
- #110Balanced Binary TreeEasy
- #100Same TreeEasy
- #572Subtree of Another TreeEasy
- #235Lowest Common Ancestor of a Binary Search TreeMedium
- #236Lowest Common Ancestor of a Binary TreeMedium
- #102Binary Tree Level Order TraversalMedium
- #199Binary Tree Right Side ViewMedium
- #1448Count Good Nodes in Binary TreeMedium
- #98Validate Binary Search TreeMedium
- #230Kth Smallest Element in a BSTMedium
- #105Construct Binary Tree from Preorder and Inorder TraversalMedium
- #124Binary Tree Maximum Path SumHard
- #297Serialize and Deserialize Binary TreeHard
- #703Kth Largest Element in a StreamEasy
- #1046Last Stone WeightEasy
- #973K Closest Points to OriginMedium
- #215Kth Largest Element in an ArrayMedium
- #355Design TwitterMedium
- #295Find Median from Data StreamHard
- #212Word Search IIHard
- #695Max Area of IslandMedium
- #994Rotting OrangesMedium
- #417Pacific Atlantic Water FlowMedium
- #207Course ScheduleMedium
- #261Graph Valid TreeMedium
- #323Number of Connected Components in an Undirected GraphMedium
- #269Alien DictionaryHard
- #70Climbing StairsEasy
- #198House RobberMedium
- #213House Robber IIMedium
- #5Longest Palindromic SubstringMedium
- #647Palindromic SubstringsMedium
- #91Decode WaysMedium
- #322Coin ChangeMedium
- #152Maximum Product SubarrayMedium
- #139Word BreakMedium
- #300Longest Increasing SubsequenceMedium
- #62Unique PathsMedium
- #1143Longest Common SubsequenceMedium
- #39Combination SumMedium
- #79Word SearchMedium
- #78SubsetsMedium
- #53Maximum SubarrayMedium
- #55Jump GameMedium
- #251Meeting RoomsEasy
- #48Rotate ImageMedium
- #50Pow(x, n)Medium
- #3365Rearrange K Substrings to Form Target StringMedium
- #3366Minimum Array SumMedium
- #460LFU CacheHard
- #1604Alert Using Same Key-Card Three or More Times in a One Hour PeriodMedium
- #743Network Delay TimeMedium
- #1975Maximum Matrix SumMedium
- #1161Maximum Level Sum of a Binary TreeMedium
- #1339Maximum Product of Splitted Binary TreeMedium
- #1458Max Dot Product of Two SubsequencesHard
- #865Smallest Subtree with all the Deepest NodesMedium
- #712Minimum ASCII Delete Sum for Two StringsMedium
- #85Maximal RectangleMedium
- #1266Minimum Time Visiting All PointsEasy
- #3453Separate Squares IMedium
- #3454Separate Squares IIHard
- #2943Maximize Area of Square Hole in GridMedium
- #2975Maximum Square Area by Removing Fences From a FieldMedium
- #3047Find the Largest Area of Square Inside Two RectanglesMedium
- #1895Largest Magic SquareMedium
- #1292Maximum Side Length of a Square with Sum Less than or Equal to ThresholdMedium
- #3314Construct the Minimum Bitwise Array IEasy
- #3315Construct the Minimum Bitwise Array IIMedium
- #3507Minimum Pair Removal to Sort Array IEasy
- #3510Minimum Pair Removal to Sort Array IIHard
- #1877Minimize Maximum Pair Sum in ArrayMedium
- #1984Minimum Difference Between Highest and Lowest of K ScoresEasy
- #1200Minimum Absolute DifferenceEasy
- #3650Minimum Cost Path with Edge ReversalsMedium
- #3651Minimum Cost Path with TeleportationsHard
- #2976Minimum Cost to Convert String IMedium
- #2977Minimum Cost to Convert String IIHard
- #744Find Smallest Letter Greater Than TargetEasy
- #3010Divide an Array Into Subarrays With Minimum Cost IEasy
- #3013Divide an Array Into Subarrays With Minimum Cost IIHard
- #3637Trionic Array IEasy
- #3379Transformed ArrayEasy
- #1382Balance a Binary Search TreeMedium
- #3719Longest Balanced Subarray IMedium
- #3721Longest Balanced Subarray IIHard
- #799Champagne TowerMedium
- #67Add BinaryEasy
- #190Reverse BitsEasy
- #693Binary Number with Alternating BitsEasy
- #696Count Binary SubstringsEasy
- #762Prime Number of Set Bits in Binary RepresentationEasy
- #868Binary GapEasy
- #1022Sum of Root To Leaf Binary NumbersEasy
- #1689Partitioning Into Minimum Number Of Deci-Binary NumbersMedium
- #11Container With Most WaterMedium
- #121Best Time to Buy and Sell StockEasy
- #3Longest Substring Without Repeating CharactersMedium
- #424Longest Repeating Character ReplacementMedium
- #153Find Minimum in Rotated Sorted ArrayMedium
- #33Search in Rotated Sorted ArrayMedium
- #226Invert Binary TreeEasy
- #208Implement Trie (Prefix Tree)Medium
- #200Number of IslandsMedium
- HRTree: Height of a Binary TreeEasy
- HRTree: Level Order TraversalEasy
- HRSwap Nodes [Algo]Medium
- HRBalanced BracketsMedium
- HRContactsMedium
- HRFind the Running MedianHard
- HRBFS: Shortest Reach in a GraphHard
No problems match those filters.