Mar 20, 2026
309. Best Time to Buy and Sell Stock with Cooldown
leetcodemediumdpstock
leetcodemediumdynamic-programmingcooldown
Mar 19, 2026
362. Design Hit Counter
leetcodemediumdesignqueuesliding-window
leetcodemediumdesigndequesliding-window
Mar 18, 2026
1448. Count Good Nodes in Binary Tree
leetcodemediumtreedfsbfs
leetcodemediumtreedfsbfs
Mar 17, 2026
1376. Time Needed to Inform All Employees
leetcodemediumtreegraphdfsbfs
leetcodemediumtreegraphdfsbfs
Mar 16, 2026
2406. Divide Intervals Into Minimum Number of Groups
leetcodemediumintervalheapsweep-line
leetcodemediumintervalsheapsweep-line
Mar 15, 2026
433. Minimum Genetic Mutation
leetcodemediumgraphbfs
leetcodemediumbfsshortest-pathstring
Mar 14, 2026
365. Water and Jug Problem
leetcodemediummathnumber-theory
leetcodemediumgcdbezout
Mar 12, 2026
841. Keys and Rooms
leetcodemediumgraphdfsbfs
leetcodemediumgraphreachabilitystackqueue
Mar 12, 2026
797. All Paths From Source to Target
leetcodemediumgraphdfsbacktracking
leetcodemediumgraphdfsbacktracking
Mar 11, 2026
1091. Shortest Path in Binary Matrix
leetcodemediumgraphbfs
leetcodemediumgridbfsshortest-path
Mar 10, 2026
1319. Number of Operations to Make Network Connected
leetcodemediumgraphunion-find
leetcodemediumgraphdsuconnected-components
Mar 10, 2026
876. Middle of the Linked List
leetcodeeasylinked-listtwo-pointers
leetcodeeasylinked-listfast-slow
Mar 9, 2026
1202. Smallest String With Swaps
leetcodemediumstringunion-findgraph
leetcodemediumstringdsuconnected-components
Mar 8, 2026
1584. Min Cost to Connect All Points
leetcodemediumgraphmstunion-find
leetcodemediumgraphkruskaldsumanhattan
Mar 7, 2026
249. Group Shifted Strings
leetcodemediumstringhash-table
leetcodemediumstringgroupingshift
Mar 7, 2026
383. Ransom Note
leetcodeeasystringhash-table
leetcodeeasystringcounting
Mar 7, 2026
242. Valid Anagram
leetcodeeasystringhash-table
leetcodeeasystringanagramcounting
Mar 7, 2026
219. Contains Duplicate II
leetcodeeasyarrayhash-tablesliding-window
leetcodeeasyarraysetsliding-window
Mar 7, 2026
217. Contains Duplicate
leetcodeeasyarrayhash-table
leetcodeeasyarrayset
Mar 6, 2026
113. Path Sum II
leetcodemediumtreedfs
leetcodemediumtreepath-sumbacktracking
Mar 6, 2026
94. Binary Tree Inorder Traversal
leetcodeeasytreedfs
leetcodeeasytreeinorderstack
Mar 6, 2026
543. Diameter of Binary Tree
leetcodeeasytreedfs
leetcodeeasytreediameterheight
Mar 6, 2026
145. Binary Tree Postorder Traversal
leetcodeeasytreedfs
leetcodeeasytreepostorderstack
Mar 6, 2026
144. Binary Tree Preorder Traversal
leetcodeeasytreedfs
leetcodeeasytreepreorderstack
Mar 6, 2026
112. Path Sum
leetcodeeasytreedfs
leetcodeeasytreepath-sumdfs
Mar 6, 2026
110. Balanced Binary Tree
leetcodeeasytreedfs
leetcodeeasytreeheightbalance
Mar 5, 2026
78. Subsets
leetcodemediumbacktrackingdfs
leetcodemediumbacktrackingdfsrecursion
Mar 4, 2026
523. Continuous Subarray Sum
leetcodemediumarrayprefix-sumhash-map
leetcodemediumarrayprefix-sumhash-mapmath
Mar 3, 2026
208. Implement Trie (Prefix Tree)
leetcodemediumtriedata-structure
leetcodemediumtrieprefix-treedesign
Mar 3, 2026
1804. Implement Trie II (Prefix Tree)
leetcodemediumtriedata-structure
leetcodemediumtrieprefix-treedesign
Mar 3, 2026
1344. Angle Between Hands of a Clock
leetcodemediummathgeometry
leetcodemediummathgeometrysimulation
Mar 3, 2026
1275. Find Winner on a Tic Tac Toe Game
leetcodeeasyarraysimulation
leetcodeeasyarraysimulationgame
Mar 2, 2026
621. Task Scheduler
leetcodemediumgreedycounting
leetcodemediumarraygreedycountingscheduling
Mar 2, 2026
358. Rearrange String k Distance Apart
leetcodehardstringheapgreedy
leetcodehardstringheapgreedyscheduling
Mar 1, 2026
80. Remove Duplicates from Sorted Array II
leetcodemediumarraytwo-pointers
leetcodemediumarraytwo-pointersin-place
Feb 28, 2026
61. Rotate List
leetcodemediumlinked-listpython
leetcodemediumlinked-listtwo-pointers
Feb 27, 2026
187. Repeated DNA Sequences
leetcodemediumstringhashingsliding-windowbit-manipulation
leetcodemediumstringhashingsliding-windowbit-manipulation
Feb 18, 2026
59. Spiral Matrix II
leetcodemediummatrixsimulation
leetcodemediummatrixsimulationspiral
Feb 17, 2026
43. Multiply Strings
leetcodemediumstringmathsimulation
leetcodemediumstringmathbig-integersimulation
Feb 17, 2026
42. Trapping Rain Water
leetcodehardtwo-pointersstackdp
leetcodehardtwo-pointersmonotonic-stackprefix-suffixdp
Feb 16, 2026
38. Count and Say
leetcodemediumstringsimulation
leetcodemediumstringsimulationrun-length-encoding
Feb 15, 2026
23. Merge k Sorted Lists
leetcodehardlinked-listdivide-and-conquerheap
leetcodehardlinked-listdivide-and-conquerheapmerge
Feb 15, 2026
893. Groups of Special-Equivalent Strings
leetcodeeasystringhash
leetcodeeasystringhashcanonical-form
Feb 14, 2026
36. Valid Sudoku
leetcodemediummathbit-manipulation
leetcodemediumbitmaskgridhash
Feb 14, 2026
29. Divide Two Integers
leetcodemediummathbit-manipulation
leetcodemediumbit-manipulationmath
Feb 12, 2026
Problem
leetcodemediumsliding-windowmonotonic-queue
leetcodemediumsliding-windowmonotonic-queue
Feb 11, 2026
416. Partition Equal Subset Sum
leetcodemediumdynamic-programming
leetcodemediumdpknapsack
Feb 11, 2026
155. Min Stack
leetcodemediumstack
leetcodemediumstackdata-structure-design
Feb 10, 2026
Problem Statement
leetcodemediumgraphshortest-pathdijkstragrid
leetcodemediumgraphshortest-pathdijkstragrid
Feb 10, 2026
Problem Statement
leetcodemediumgraphshortest-pathdijkstragrid
leetcodemediumgraphshortest-pathdijkstragrid
Feb 9, 2026
91. Decode Ways
leetcodemediumdynamic-programming
leetcodemediumdynamic-programmingstring
Feb 9, 2026
1944. Number of Visible People in a Queue
leetcodehardstackmonotonic-stack
leetcodehardstackmonotonic-stack
Feb 8, 2026
3112. Minimum Time to Visit Disappearing Nodes
leetcodemediumgraphshortest-pathdijkstra
leetcodemediumgraphshortest-pathdijkstra
Feb 8, 2026
210. Course Schedule II
leetcodemediumgraphtopological-sort
leetcodemediumgraphtopological-sort
Feb 7, 2026
1488. Avoid Flood in The City
leetcodemediumarraygreedybinary-searchset
leetcodemediumarraygreedybinary-searchset
Feb 6, 2026
875. Koko Eating Bananas
leetcodemediumarraybinary-search
leetcodemediumarraybinary-search
Feb 6, 2026
532. K-diff Pairs in an Array
leetcodemediumarrayhash-table
leetcodemediumarrayhash-table
Feb 6, 2026
3439. Reschedule Meetings for Maximum Free Time I
leetcodemediumarrayintervalssliding-windowprefix-sum
leetcodemediumarrayintervalssliding-windowprefix-sum
Feb 6, 2026
252. Meeting Rooms
leetcodeeasyarraysortingintervals
leetcodeeasyarraysortingintervals
Feb 5, 2026
1109. Corporate Flight Bookings
leetcodemediumarrayprefix-sumdifference-array
leetcodemediumarrayprefix-sumdifference-array
Feb 4, 2026
787. Cheapest Flights Within K Stops
leetcodemediumgraphshortest-pathdynamic-programmingbellman-ford
leetcodemediumgraphshortest-pathdynamic-programmingbellman-ford
Feb 3, 2026
743. Network Delay Time
leetcodemediumgraphshortest-pathdijkstra
leetcodemediumgraphshortest-pathdijkstra
Feb 2, 2026
974. Subarray Sums Divisible by K
leetcodemediumarrayhash-tableprefix-sum
leetcodemediumarrayhash-tableprefix-sum
Feb 2, 2026
843. Guess the Word
leetcodehardarraystringinteractiveminmax
leetcodehardarraystringinteractiveminmax
Feb 1, 2026
560. Subarray Sum Equals K
leetcodemediumarrayhash-tableprefix-sum
leetcodemediumarrayhash-tableprefix-sum
Feb 1, 2026
325. Maximum Size Subarray Sum Equals k
leetcodemediumarrayhash-tableprefix-sum
leetcodemediumarrayhash-tableprefix-sum
Feb 1, 2026
44. Wildcard Matching
leetcodehardstringdynamic-programminggreedytwo-pointers
leetcodehardstringdynamic-programminggreedytwo-pointers
Jan 30, 2026
981. Time Based Key-Value Store
leetcodemediumhash-tablebinary-searchdesign
leetcodemediumhash-tablebinary-searchdesign
Jan 30, 2026
34. Find First and Last Position of Element in Sorted Array
leetcodemediumarraybinary-search
leetcodemediumarraybinary-search
Jan 30, 2026
162. Find Peak Element
leetcodemediumarraybinary-search
leetcodemediumarraybinary-search
Jan 30, 2026
35. Search Insert Position
leetcodeeasyarraybinary-search
leetcodeeasyarraybinary-search
Jan 29, 2026
739. Daily Temperatures
leetcodemediumarraystackmonotonic-stack
leetcodemediumarraystackmonotonic-stack
Jan 28, 2026
2080. Range Frequency Queries
leetcodemediumarrayhash-mapbinary-searchdesign
leetcodemediumarrayhash-mapbinary-searchdesign
Jan 27, 2026
238. Product of Array Except Self
leetcodemediumarrayprefix-sumtwo-pointers
leetcodemediumarrayprefix-sumtwo-pointers
Jan 27, 2026
1136. Parallel Courses
leetcodehardgraphtopological-sortdfsdynamic-programming
leetcodehardgraphtopological-sortdfsdynamic-programmingmemoization
Jan 26, 2026
209. Minimum Size Subarray Sum
leetcodemediumarraysliding-windowbinary-searchprefix-sum
leetcodemediumarraysliding-windowbinary-searchprefix-sumtwo-pointers
Jan 26, 2026
862. Shortest Subarray with Sum at Least K
leetcodehardarraysliding-windowdequeprefix-summonotonic-deque
leetcodehardarraysliding-windowdequeprefix-summonotonic-deque
Jan 26, 2026
27. Remove Element
leetcodeeasyarraytwo-pointers
leetcodeeasyarraytwo-pointersin-place
Jan 25, 2026
354. Russian Doll Envelopes
leetcodemediumarraydynamic-programmingbinary-searchsorting
leetcodemediumarraydynamic-programmingbinary-searchsortinglongest-increasing-subsequence
Jan 25, 2026
213. House Robber II
leetcodemediumarraydynamic-programming
leetcodemediumarraydynamic-programmingdpcircular-array
Jan 24, 2026
622. Design Circular Queue
leetcodemediumarraylinked-listdesignqueue
leetcodemediumarraylinked-listdesignqueuecircular-queuedata-structure
Jan 23, 2026
1233. Remove Sub-Folders from the Filesystem
leetcodemediumarraystringtriesorting
leetcodemediumarraystringtriesortingprefix-matching
Jan 22, 2026
1801. Number of Orders in the Backlog
leetcodemediumarrayheappriority-queuesimulation
leetcodemediumarrayheappriority-queuesimulationgreedy
Jan 21, 2026
63. Unique Paths II
leetcodemediumarraydynamic-programmingmatrix
leetcodemediumarraydynamic-programmingmatrixgridobstacles
Jan 20, 2026
498. Diagonal Traverse
leetcodemediumarraymatrixsimulation
leetcodemediumarraymatrixsimulation
Jan 20, 2026
189. Rotate Array
leetcodemediumarray
leetcodemediumarrayrotationtwo-pointers
Jan 20, 2026
Minimal, copy-paste C++ for binary search, rotated arrays, 2D search, and answer-space search. Matches Data Structures lower/upper bound style.
leetcodetemplatessearchbinary-search
leetcodetemplatessearchbinary-searchdivide-and-conquer
Jan 20, 2026
327. Count of Range Sum
leetcodehardarraydivide-and-conquer
leetcodehardarraydivide-and-conquermerge-sortsegment-treeprefix-sum
Jan 19, 2026
236. Lowest Common Ancestor of a Binary Tree
leetcodemediumtreedfs
leetcodemediumtreedfsrecursionlca
Jan 19, 2026
211. Design Add and Search Words Data Structure
leetcodemediumstringdesigntrie
leetcodemediumstringdesigntriewildcard-searchdfs
Jan 19, 2026
1701. Average Waiting Time
leetcodemediumarraysimulation
leetcodemediumarraysimulationgreedy
Jan 19, 2026
645. Set Mismatch
leetcodeeasyarrayhash-tablemath
leetcodeeasyarrayhash-tablemathbit-manipulationnegative-marking
Jan 19, 2026
409. Longest Palindrome
leetcodeeasystringhash-tablegreedy
leetcodeeasystringhash-tablegreedybit-manipulationpalindrome
Jan 19, 2026
387. First Unique Character in a String
leetcodeeasystringhash-table
leetcodeeasystringhash-tablebit-manipulationfrequency-counting
Jan 19, 2026
349. Intersection of Two Arrays
leetcodeeasyarrayhash-table
leetcodeeasyarrayhash-tabletwo-pointerssorting
Jan 19, 2026
226. Invert Binary Tree
leetcodeeasytreedfs
leetcodeeasytreedfsrecursion
Jan 19, 2026
2185. Counting Words With a Given Prefix
leetcodeeasystringarray
leetcodeeasystringarrayprefixsimulation
Jan 19, 2026
1624. Largest Substring Between Two Equal Characters
leetcodeeasystringhash-table
leetcodeeasystringhash-tablesubstringtwo-pointers
Jan 19, 2026
112. Path Sum
leetcodeeasytreedfs
leetcodeeasytreedfsrecursionbacktracking
Jan 19, 2026
111. Minimum Depth of Binary Tree
leetcodeeasytreedfs
leetcodeeasytreedfsbfsrecursion
Jan 19, 2026
104. Maximum Depth of Binary Tree
leetcodeeasytreedfs
leetcodeeasytreedfsbfsrecursion
Jan 19, 2026
101. Symmetric Tree
leetcodeeasytreedfs
leetcodeeasytreedfsrecursion
Jan 19, 2026
100. Same Tree
leetcodeeasytreedfs
leetcodeeasytreedfsrecursion
Jan 19, 2026
211. Design Add and Search Words Data Structure
leetcodemediumstringdesigntrie
leetcodemediumstringdesigntriewildcard-searchdfs
Jan 19, 2026
409. Longest Palindrome
leetcodeeasystringhash-tablegreedy
leetcodeeasystringhash-tablegreedybit-manipulationpalindrome
Jan 18, 2026
208. Implement Trie (Prefix Tree)
leetcodemediumstringdesigntrie
leetcodemediumstringdesigntrieprefix-treedata-structure
Jan 18, 2026
732. My Calendar III
leetcodehardarraybinary-searchdesignsegment-treeordered-set
leetcodehardarraybinary-searchdesignsegment-treelazy-propagationsweep-linedifference-array
Jan 18, 2026
3110. Score of a String
leetcodeeasystringarray
leetcodeeasystringarraysimulationascii
Jan 17, 2026
729. My Calendar I
leetcodemediumarraybinary-searchdesignordered-set
leetcodemediumarraybinary-searchdesignordered-setintervaloverlap-detection
Jan 17, 2026
315. Count of Smaller Numbers After Self
leetcodehardarraybinary-searchdivide-and-conquerbinary-indexed-treesegment-treemerge-sort
leetcodehardarrayfenwick-treebinary-indexed-treecoordinate-compressioninversion-count
Jan 16, 2026
3477. Number of Unplaced Fruits
leetcodemediumarraygreedysegment-tree
leetcodemediumarraygreedysegment-treedata-structure
Jan 16, 2026
307. Range Sum Query - Mutable
leetcodemediumarraysegment-treebinary-indexed-tree
leetcodemediumarraysegment-treebinary-indexed-treedata-structure
Jan 16, 2026
305. Number of Islands II
leetcodehardarrayunion-findgraph
leetcodehardarrayunion-finddisjoint-setincrementaldynamic
Jan 15, 2026
802. Find Eventual Safe States
leetcodemediumgraphdfscycle-detection
leetcodemediumgraphdfscycle-detectionthree-state-coloring
Jan 15, 2026
315. Count of Smaller Numbers After Self
leetcodehardarraybinary-searchdivide-and-conquerbinary-indexed-treesegment-treemerge-sort
leetcodehardarrayfenwick-treebinary-indexed-treecoordinate-compressioninversion-count
Jan 14, 2026
LCR 113. Course Schedule II
leetcodemediumgraphtopological-sortdfs
leetcodemediumgraphtopological-sortdfscycle-detection
Jan 14, 2026
310. Minimum Height Trees
leetcodemediumgraphtreetopological-sortbfs
leetcodemediumgraphtreetopological-sortbfspeeling-leaves
Jan 14, 2026
269. Alien Dictionary
leetcodehardgraphtopological-sortstring
leetcodehardgraphtopological-sortstringbfskahn
Jan 13, 2026
1670. Design Front Middle Back Queue
leetcodemediumdesigndequedata-structure
leetcodemediumdesigndequedata-structuretwo-deques
Jan 12, 2026
79. Word Search
leetcodemediumarraybacktrackingmatrixdfs
leetcodemediumarraybacktrackingmatrixdfsrecursion
Jan 12, 2026
22. Generate Parentheses
leetcodemediumstringbacktrackingrecursion
leetcodemediumstringbacktrackingrecursiondfs
Jan 12, 2026
51. N-Queens
leetcodehardarraybacktrackingrecursion
leetcodehardarraybacktrackingrecursionconstraint-satisfaction
Jan 12, 2026
844. Backspace String Compare
leetcodeeasystringtwo-pointersstack
leetcodeeasystringtwo-pointersstacksimulation
Jan 11, 2026
721. Accounts Merge
leetcodemediumarrayhash-tablestringunion-finddfs
leetcodemediumarrayhash-tablestringunion-finddisjoint-setdfs
Jan 10, 2026
64. Minimum Path Sum
leetcodemediumarraydynamic-programmingmatrix
leetcodemediumarraydynamic-programmingmatrixgrid
Jan 10, 2026
1340. Jump Game V
leetcodehardarraydynamic-programmingdfsmemoization
leetcodehardarraydynamic-programmingdfsmemoizationrecursion
Jan 9, 2026
673. Number of Longest Increasing Subsequence
leetcodemediumarraydynamic-programming
leetcodemediumarraydynamic-programminglongest-increasing-subsequence
Jan 8, 2026
692. Top K Frequent Words
leetcodemediumhash-tableheapsortingstring
leetcodemediumhash-tableheapsortingstringpriority-queue
Jan 8, 2026
5. Longest Palindromic Substring
leetcodemediumstringtwo-pointersdynamic-programming
leetcodemediumstringtwo-pointerspalindromeexpand-around-centermanacher
Jan 7, 2026
429. N-ary Tree Level Order Traversal
leetcodemediumtreebfsn-ary-tree
leetcodemediumtreebfslevel-order-traversaln-ary-tree
Jan 7, 2026
323. Number of Connected Components in an Undirected Graph
leetcodemediumgraphbfsdfsunion-find
leetcodemediumgraphbfsconnected-componentsundirected-graph
Jan 7, 2026
102. Binary Tree Level Order Traversal
leetcodemediumtreebfsbinary-tree
leetcodemediumtreebfslevel-order-traversalbinary-tree
Jan 7, 2026
993. Cousins in Binary Tree
leetcodeeasytreebfsbinary-tree
leetcodeeasytreebfsbinary-treelevel-order-traversal
Jan 6, 2026
103. Binary Tree Zigzag Level Order Traversal
leetcodemediumtreebfsbinary-tree
leetcodemediumtreebfslevel-order-traversaldequebinary-tree
Jan 5, 2026
215. Kth Largest Element in an Array
leetcodemediumarrayheapquickselectdivide-and-conquer
leetcodemediumarrayheappriority-queuequickselectdivide-and-conquersorting
Jan 5, 2026
Minimal, copy-paste C++ for min/max heap, K-way merge, top K, and two heaps. See also Data Structures for heap patterns.
leetcodetemplatesheappriority-queue
leetcodetemplatesheappriority-queuedata-structures
Jan 4, 2026
53. Maximum Subarray
leetcodemediumarraydynamic-programminggreedydivide-and-conquer
Jan 4, 2026
376. Wiggle Subsequence
leetcodemediumarraydynamic-programminggreedy
Jan 4, 2026
1605. Find Valid Matrix Given Row and Column Sums
leetcodemediumarraymatrixgreedy
Jan 4, 2026
1400. Construct K Palindrome Strings
leetcodemediumstringgreedyhash-table
Jan 4, 2026
1247. Minimum Swaps to Make Strings Equal
leetcodemediumstringmathgreedy
Jan 4, 2026
1029. Two City Scheduling
leetcodemediumarraygreedysorting
Jan 4, 2026
135. Candy
leetcodehardarraygreedy
Jan 4, 2026
1710. Maximum Units on a Truck
leetcodeeasyarraygreedysorting
Jan 4, 2026
1217. Minimum Cost to Move Chips to The Same Position
leetcodeeasyarraymathgreedy
Jan 3, 2026
561. Array Partition
leetcodeeasyarraygreedysorting
Jan 3, 2026
122. Best Time to Buy and Sell Stock II
leetcodemediumarraygreedydynamic-programming
Jan 3, 2026
392. Is Subsequence
leetcodeeasystringtwo-pointersgreedydynamic-programming
Jan 3, 2026
55. Jump Game
leetcodemediumarraygreedydynamic-programming
Jan 3, 2026
452. Minimum Number of Arrows to Burst Balloons
leetcodemediumarraygreedysortingintervals
Jan 3, 2026
435. Non-overlapping Intervals
leetcodemediumarraygreedysortingintervalsdynamic-programming
Jan 3, 2026
860. Lemonade Change
leetcodeeasyarraygreedysimulation
Jan 3, 2026
455. Assign Cookies
leetcodeeasyarraygreedysortingtwo-pointers
Jan 2, 2026
351. Android Unlock Patterns
leetcodemediumbacktrackingrecursiondynamic-programming
Jan 1, 2026
1177. Can Make Palindrome from Substring
leetcodemediumstringbit-manipulationprefix-sumhash-table
Jan 1, 2026
303. Range Sum Query - Immutable
leetcodeeasyarraydesignprefix-sum
Jan 1, 2026
393. UTF-8 Validation
leetcodemediumbit-manipulationstringarray
Jan 1, 2026
308. Range Sum Query 2D - Mutable
leetcodeharddesigndata-structuresprefix-summatrix
Jan 1, 2026
568. Maximum Vacation Days
leetcodeharddynamic-programminggraphoptimization
Jan 1, 2026
418. Sentence Screen Fitting
leetcodemediumdynamic-programmingstringsimulation
Jan 1, 2026
496. Next Greater Element I
leetcodeeasyarraystackmonotonic-stackhash-table
Jan 1, 2026
360. Sort Transformed Array
leetcodemediumarraytwo-pointersmathparabola
Dec 31, 2025
715. Range Module
leetcodeharddesigndata-structuresintervalmaptree-map
Dec 31, 2025
425. Word Squares
leetcodehardbacktrackingtrierecursionstring
Dec 31, 2025
270. Closest Binary Search Tree Value
leetcodeeasybinary-search-treetreerecursionbinary-search
Dec 31, 2025
685. Redundant Connection II
leetcodehardunion-finddsugraphcycle-detectiondirected-graph
Dec 31, 2025
285. Inorder Successor in BST
leetcodemediumbinary-search-treetreeinorder-traversal
Dec 31, 2025
487. Max Consecutive Ones II
leetcodemediumarraydynamic-programmingsliding-window
Dec 31, 2025
661. Image Smoother
leetcodeeasymatrixarraysimulation
Dec 31, 2025
616. Add Bold Tag in String
leetcodemediumstringarraygreedy
Dec 30, 2025
681. Next Closest Time
leetcodemediumstringsimulationbrute-force
Dec 30, 2025
683. K Empty Slots
leetcodemediumsliding-windowtwo-pointersarray
Dec 30, 2025
686. Repeated String Match
leetcodemediumstring-matchingkmprabin-karprolling-hash
Dec 29, 2025
684. Redundant Connection
leetcodemediumunion-finddsugraphcycle-detectiondfs
Dec 28, 2025
1976. Number of Ways to Arrive at Destination
leetcodemediumdijkstrashortest-pathgraphdynamic-programming
Dec 18, 2025
[Medium] 547. Number of Provinces
leetcodealgorithmmediumcppdisjoint-setdfsgraphproblem-solving
Dec 17, 2025
[Medium] 399. Evaluate Division
leetcodealgorithmmediumcppdisjoint-setgraphdfsproblem-solving
Dec 16, 2025
[Medium] 690. Employee Importance
leetcodealgorithmmediumcppdfsbfshash-tableproblem-solving
Dec 16, 2025
[Hard] 850. Rectangle Area II
leetcodealgorithmhardcppgeometrysweep-linesegment-treeproblem-solving
Dec 14, 2025
[Medium] 286. Walls and Gates
leetcodealgorithmmediumcpparraymatrixbfsproblem-solving
Dec 14, 2025
[Medium] 279. Perfect Squares
leetcodealgorithmmediumcppmathdynamic-programmingbfsproblem-solving
Dec 14, 2025
Minimal, copy-paste C++ for interval scheduling, activity selection, and greedy on arrays/strings with sorting.
leetcodetemplatesgreedy
leetcodetemplatesgreedyalgorithms
Dec 14, 2025
[Easy] 346. Moving Average from Data Stream
leetcodealgorithmeasycppqueuesliding-windowdesignproblem-solving
Dec 13, 2025
[Medium] 994. Rotting Oranges
leetcodealgorithmmediumcpparraymatrixbfsproblem-solving
Dec 11, 2025
[Medium] 253. Meeting Rooms II
leetcodealgorithmmediumcpparraysortingpriority-queuetwo-pointersproblem-solving
Dec 11, 2025
[Easy] 67. Add Binary
leetcodealgorithmeasycppstringmathbit-manipulationproblem-solving
Dec 10, 2025
[Medium] 281. Zigzag Iterator
leetcodealgorithmmediumcppdesigniteratorproblem-solving
Dec 3, 2025
[Hard] 1206. Design Skiplist
leetcodealgorithmhardcppdata-structuresskiplistlinked-listproblem-solving
Dec 2, 2025
[Medium] 75. Sort Colors
leetcodealgorithmmediumcpparraytwo-pointerssortingproblem-solving
Dec 2, 2025
[Medium] 593. Valid Square
leetcodealgorithmmediumcppmathgeometryproblem-solving
Dec 2, 2025
[Medium] 146. LRU Cache
leetcodealgorithmmediumcppdesigndata-structureshash-maplinked-listproblem-solving
Dec 2, 2025
[Medium] 146. LRU Cache
leetcodealgorithmmediumcppdesigndata-structureshash-maplinked-listproblem-solving
Nov 24, 2025
[Medium] Round Trip Ticket Cost Minimization
algorithmmediumcpparrayoptimizationproblem-solving
algorithmmediumarrayoptimizationgreedytwo-pointers
Nov 24, 2025
[Medium] 983. Minimum Cost For Tickets
leetcodealgorithmmediumcppdynamic-programmingproblem-solving
leetcodemediumdynamic-programmingdpoptimization
Nov 24, 2025
[Medium] 647. Palindromic Substrings
leetcodealgorithmmediumcppstringtwo-pointersproblem-solving
leetcodemediumstringtwo-pointerspalindromeexpand-around-center
Nov 24, 2025
[Medium] 56. Merge Intervals
leetcodealgorithmmediumcpparraysortingintervalproblem-solving
leetcodemediumarraysortingintervalsmerge
Nov 24, 2025
[Medium] 528. Random Pick with Weight
leetcodealgorithmmediumcppdesignbinary-searchprefix-sumproblem-solving
leetcodemediumdesignbinary-searchprefix-sumweighted-random
Nov 24, 2025
[Medium] 398. Random Pick Index
leetcodealgorithmmediumcpphash-tablereservoir-samplingproblem-solving
leetcodemediumhash-tablereservoir-samplingdesignrandomization
Nov 24, 2025
[Medium] 277. Find the Celebrity
leetcodealgorithmmediumcppgraphtwo-pointersproblem-solving
leetcodemediumgraphtwo-pointerscelebrity
Nov 24, 2025
[Medium] 1762. Buildings With an Ocean View
leetcodealgorithmmediumcpparraystackmonotonic-stackproblem-solving
leetcodemediumarraystackmonotonic-stackgreedytwo-pointers
Nov 24, 2025
[Medium] 129. Sum Root to Leaf Numbers
leetcodealgorithmmediumcpptreedfsproblem-solving
leetcodemediumtreedfsrecursionbinary-tree
Nov 24, 2025
[Medium] 1209. Remove All Adjacent Duplicates in String II
leetcodealgorithmmediumcppstringstacktwo-pointersproblem-solving
leetcodemediumstringstacktwo-pointersin-place
Nov 24, 2025
[Hard] 489. Robot Room Cleaner
leetcodealgorithmhardcppdfsbacktrackingproblem-solving
leetcodeharddfsbacktrackingrobotsimulation
Nov 24, 2025
[Hard] 32. Longest Valid Parentheses
leetcodealgorithmhardcppstringdynamic-programmingstackproblem-solving
leetcodehardstringdynamic-programmingstacktwo-pointersgreedy
Nov 24, 2025
[Easy] 938. Range Sum of BST
leetcodealgorithmeasycpptreebstdfsproblem-solving
leetcodeeasytreebstdfsrecursion
Nov 24, 2025
[Easy] 408. Valid Word Abbreviation
leetcodealgorithmeasycppstringtwo-pointersproblem-solving
leetcodeeasystringtwo-pointersparsing
Nov 24, 2025
[Easy] 1047. Remove All Adjacent Duplicates In String
leetcodealgorithmeasycppstringstacktwo-pointersproblem-solving
leetcodeeasystringstacktwo-pointersin-place
Nov 24, 2025
Minimal, copy-paste C++ for sliding window, two pointers, string matching, manipulation, and parsing. See also Arrays & Strings for KMP and rolling hash.
leetcodetemplatesstring
leetcodetemplatesstringalgorithms
Nov 24, 2025
Minimal, copy-paste C++ for BFS queue, monotonic queue, priority queue, circular queue, and deque. See also Graph and Data Structures (monotonic queue).
leetcodetemplatesqueue
leetcodetemplatesqueuedata-structures
Nov 24, 2025
Minimal, copy-paste C++ for bit operations, fast exponentiation, GCD/LCM, primes, and number theory. See also Math & Geometry.
leetcodetemplatesmathbit-manipulation
leetcodetemplatesmathbit-manipulation
Nov 24, 2025
Minimal, copy-paste C++ for traversal, two pointers, dummy node, reversal, merge, cycle detection, and circular list.
leetcodetemplateslinked-list
leetcodetemplateslinked-list
Nov 24, 2025
Minimal, copy-paste C++ for graph DFS, grid DFS, tree DFS, memoization, and iterative DFS. See also Graph and Backtracking.
leetcodetemplatesdfsgraph
leetcodetemplatesdfsgraphtraversal
Nov 24, 2025
Minimal, copy-paste C++ for LRU/LFU cache, Trie, time-based key-value store, and common design patterns.
leetcodetemplatesdesign
leetcodetemplatesdesigndata-structures
Nov 24, 2025
Minimal, copy-paste C++ for graph and grid BFS, multi-source BFS, shortest path, and level-order traversal. See also Graph for Dijkstra and 0-1 BFS.
leetcodetemplatesbfsgraph
leetcodetemplatesbfsgraphtraversal
Nov 24, 2025
Minimal, copy-paste C++ for permutations, combinations, subsets, combination sum, grid pathfinding, and constraint satisfaction (N-Queens, Sudoku).
leetcodetemplatesbacktracking
leetcodetemplatesbacktrackingdfs
Nov 24, 2025
Minimal, copy-paste C++ for two pointers, sliding window, prefix sum, binary search, and matrix operations. See also Arrays & Strings and Search.
leetcodetemplatesarraymatrix
leetcodetemplatesarraymatrix
Nov 20, 2025
[Medium] 200. Number of Islands
leetcodealgorithmmediumcppdfsgraphmatrixproblem-solving
leetcodemediumdfsgraphmatrixconnected-components
Nov 18, 2025
[Medium] 969. Pancake Sorting
leetcodealgorithmmediumcpparraysortingproblem-solving
leetcodemediumarraysortinggreedypancake-flip
Nov 18, 2025
[Medium] 49. Group Anagrams
leetcodealgorithmmediumcppstringhash-tableproblem-solving
leetcodemediumstringhash-tableanagramcounting
Nov 18, 2025
[Medium] 45. Jump Game II
leetcodealgorithmmediumcpparraygreedyproblem-solving
leetcodemediumarraygreedybfsoptimization
Nov 18, 2025
[Medium] 2. Add Two Numbers
leetcodealgorithmmediumcpplinked-listrecursionproblem-solving
leetcodemediumlinked-listrecursionmathcarry
Nov 18, 2025
[Medium] 198. House Robber
leetcodealgorithmmediumcppdynamic-programmingdpproblem-solving
leetcodemediumdynamic-programmingdparrayoptimization
Nov 18, 2025
[Easy] 509. Fibonacci Number
leetcodealgorithmeasycppdynamic-programmingrecursionproblem-solving
leetcodeeasydynamic-programmingrecursionmathfibonacci
Nov 18, 2025
[Easy] 203. Remove Linked List Elements
leetcodealgorithmeasycpplinked-listiterationproblem-solving
leetcodeeasylinked-listtwo-pointersdummy-node
Nov 17, 2025
[Medium] 1424. Diagonal Traverse II
leetcodealgorithmmediumcpparraymatrixhash-mapbfsproblem-solving
Nov 16, 2025
[Easy] 206. Reverse Linked List
leetcodealgorithmeasycpplinked-listrecursioniterationproblem-solving
Nov 15, 2025
[Medium] 146. LRU Cache
leetcodealgorithmmediumcppdesigndata-structureshash-maplinked-listproblem-solving
Nov 14, 2025
[Medium] 93. Restore IP Addresses
leetcodealgorithmmediumcppbacktrackingstringproblem-solving
Nov 14, 2025
[Hard] 460. LFU Cache
leetcodealgorithmhardcppdesigndata-structureshash-maplinked-listproblem-solving
Nov 14, 2025
Minimal, copy-paste C++ for parentheses matching, expression evaluation, nested structures, and monotonic stack.
leetcodetemplatesstackdata-structures
leetcodetemplatesstackdata-structures
Nov 14, 2025
Minimal, copy-paste C++ for expression evaluation with +, −, ×, ÷ and parentheses. See also Stack for RPN and nested expressions.
leetcodetemplatescalculatorexpression-evaluation
leetcodetemplatescalculatorexpression-evaluationstack
Nov 14, 2025
[Medium] 224. Basic Calculator
leetcodealgorithmmediumcppstringstackexpression-evaluationproblem-solving
leetcodemediumstringstackcalculatorexpression-evaluationparentheses
Nov 14, 2025
[Hard] 772. Basic Calculator III
leetcodealgorithmhardcppstringstackrecursionexpression-evaluationproblem-solving
leetcodehardstringstackcalculatorrecursionexpression-evaluationparentheses
Nov 14, 2025
[Medium] 227. Basic Calculator II
leetcodealgorithmmediumcppstringstackexpression-evaluationproblem-solving
leetcodemediumstringstackcalculatorexpression-evaluation
Nov 5, 2025
[Medium] 324. Wiggle Sort II
leetcodealgorithmmediumcpparraysnth-elementthree-way-partitionindex-mappingproblem-solving
leetcodemediumarraywigglenth_elementpartition
Nov 5, 2025
[Medium] 921. Minimum Add to Make Parentheses Valid
leetcodealgorithmmediumcppstringstackgreedyproblem-solving
leetcodemediumstringstackparenthesesgreedycounting
Nov 5, 2025
[Easy] 20. Valid Parentheses
leetcodealgorithmeasycppstringstackproblem-solving
leetcodeeasystringstackparenthesesvalidation
Nov 5, 2025
[Medium] 525. Contiguous Array
leetcodealgorithmmediumcpparrayshash-mapprefix-sumproblem-solving
leetcodemediumarrayhash-mapprefix-sumsubarray
Nov 5, 2025
[Hard] 480. Sliding Window Median
leetcodealgorithmhardcpparraysmultisetsliding-windowtwo-heapsproblem-solving
leetcodehardarraymultisetsliding-windowtwo-heapsmedian
Nov 5, 2025
[Hard] 239. Sliding Window Maximum
leetcodealgorithmhardcpparraysdequesliding-windowmonotonic-queueproblem-solving
leetcodehardarraydequesliding-windowmonotonic-queue
Nov 5, 2025
[Easy] 485. Max Consecutive Ones
leetcodealgorithmeasycpparrayssliding-windowproblem-solving
leetcodeeasyarraysliding-windowcounting
Nov 5, 2025
[Medium] 18. 4Sum
leetcodealgorithmmediumcpparraystwo-pointerssortingproblem-solving
Oct 29, 2025
Contents
leetcodetemplatestrees
leetcodetemplatestrees
Oct 29, 2025
Contents
leetcodetemplatesmathgeometry
leetcodetemplatesmathgeometry
Oct 29, 2025
Contents
leetcodetemplatesgraph
leetcodetemplatesgraph
Oct 29, 2025
Contents
leetcodetemplatesdynamic-programming
leetcodetemplatesdp
Oct 29, 2025
Contents
leetcodetemplatesdata-structures
leetcodetemplatesdata-structures
Oct 29, 2025
Contents
leetcodetemplatesarraysstrings
leetcodetemplatesarraysstrings
Oct 29, 2025
Contents
leetcodetemplatesadvanced
leetcodetemplatesadvanced
Oct 29, 2025
LeetCode Categories and Solution Templates
leetcodealgorithmproblem-solvingtemplates
leetcodetemplatespatternsdpgraphsliding-windowtwo-pointersbinary-search
Oct 29, 2025
LC 717: 1-bit and 2-bit Characters
leetcodeeasyarrayparsing
leetcodeeasyarrayparsing
Oct 29, 2025
LC 344: Reverse String
leetcodeeasytwo-pointersstring
leetcodeeasytwo-pointersstring
Oct 28, 2025
LC 708: Insert into a Sorted Circular Linked List
leetcodemediumlinked-listcircular
leetcodemediumlinked-listcircularinsertiontwo-pointers
Oct 28, 2025
LC 636: Exclusive Time of Functions
leetcodemediumstackparsing
leetcodemediumstackparsinglogssimulation
Oct 25, 2025
LC 863: All Nodes Distance K in Binary Tree
leetcodemediumtreedfsbfs
leetcodemediumtreebinary-treedfsbfsgraphrecursion
Oct 22, 2025
LC 1249: Minimum Remove to Make Valid Parentheses
leetcodemediumstringstack
leetcodemediumstringstackparenthesesvalidation
Oct 22, 2025
LC 1094: Car Pooling
leetcodemediumarraysorting
leetcodemediumarraysortingsimulationbucket-sort
Oct 22, 2025
LC 426: Convert Binary Search Tree to Sorted Doubly Linked List
leetcodemediumtreelinked-list
leetcodemediumtreelinked-listbstinorder-traversalrecursion
Oct 22, 2025
LC 348: Design Tic-Tac-Toe
leetcodemediumdesignarray
leetcodemediumdesignarraymatrixoptimization
Oct 22, 2025
LC 419: Battleships in a Board
leetcodemediumarraymatrix
leetcodemediumarraymatrixdfsbattleship
Oct 21, 2025
LC 545: Boundary of Binary Tree
leetcodemediumtreedfs
leetcodemediumtreedfsbinary-treeboundary-traversal
Oct 21, 2025
LC 347: Top K Frequent Elements
leetcodemediumarrayhash-tableheap
leetcodemediumarrayhash-tableheapbucket-sortquickselect
Oct 21, 2025
LC 973: K Closest Points to Origin
leetcodemediumarraysorting
leetcodemediumarraysortingheapquickselect
Oct 21, 2025
LC 1207: Unique Number of Occurrences
leetcodeeasyarrayhash-table
leetcodeeasyarrayhash-tablecounting
Oct 20, 2025
207. Course Schedule
leetcodemediumgraphtopological-sortcycle-detection
Oct 20, 2025
133. Clone Graph
leetcodemediumgraphdfsbfsclone
Oct 20, 2025
752. Open the Lock
leetcodemediumbfsshortest-pathlock
Oct 20, 2025
314. Binary Tree Vertical Order Traversal
leetcodemediumtreebfsvertical-order
Oct 20, 2025
322. Coin Change
leetcodemediumdynamic-programmingdpcoin-change
Oct 20, 2025
47. Permutations II
leetcodealgorithmmediumbacktrackingrecursionduplicates
Oct 20, 2025
77. Combinations
leetcodemediumbacktrackingrecursioncombinations
Oct 20, 2025
46. Permutations
leetcodealgorithmmediumbacktrackingrecursion
Oct 20, 2025
1650. Lowest Common Ancestor of a Binary Tree III
leetcodealgorithmmediumtreebinary-treelca
Oct 20, 2025
2043. Simple Bank System
leetcodealgorithmmediumdesigndata-structure
Oct 20, 2025
1443. Minimum Time to Collect All Apples in a Tree
leetcodealgorithmmediumtreedfsbfsgraph
Oct 20, 2025
84. Largest Rectangle in Histogram
leetcodealgorithmhardstackmonotonic-stack
Oct 20, 2025
695. Max Area of Island
leetcodealgorithmmediumdfsgraphmatrix
Oct 20, 2025
1868. Product of Two Run-Length Encoded Arrays
leetcodealgorithmmediumrun-length-encodingtwo-pointersarray-processing
Oct 20, 2025
[Medium] 1570. Dot Product of Two Sparse Vectors
pythonhash-mapdata-structureoptimizationproblem-solving
Oct 20, 2025
[Medium] 1865. Finding Pairs With a Certain Sum
pythonhash-mapdata-structureproblem-solving
Oct 20, 2025
[Medium] 437. Path Sum III
pythontreedfsrecursionproblem-solving
Oct 20, 2025
[Medium] 394. Decode String
pythonstackstring-processingproblem-solving
Oct 19, 2025
[Medium] 417. Pacific Atlantic Water Flow
pythondfsbfsgraphproblem-solving
Oct 19, 2025
[Medium] 406. Queue Reconstruction by Height
pythongreedysortinglistproblem-solving
Oct 18, 2025
[Medium] 1856. Maximum Sum of Minimum Product
pythonstackmonotonic-stackprefix-sumproblem-solving
Oct 18, 2025
[Medium] 316. Remove Duplicate Letters
pythonstackmonotonic-stackgreedyproblem-solving
Oct 17, 2025
[Medium] 648. Replace Words
pythontriehash-setstring-processingproblem-solving
Oct 17, 2025
[Medium] 300. Longest Increasing Subsequence
pythondynamic-programmingdpbinary-searchproblem-solving
Oct 17, 2025
[Medium] 503. Next Greater Element II
pythonmonotonic-stackstackproblem-solving
Oct 17, 2025
[Medium] 2799. Count Complete Subarrays in an Array
pythonsliding-windowhash-mapproblem-solving
Oct 17, 2025
[Medium] 2466. Count Ways To Build Good Strings
pythondynamic-programmingdpproblem-solving
Oct 16, 2025
[Medium] 1124. Longest Well-Performing Interval
pythonhash-mapprefix-sumproblem-solving
Oct 15, 2025
[Medium] 494. Target Sum
pythondynamic-programmingdpsubset-sumproblem-solving
Oct 10, 2025
[Medium] 3. Longest Substring Without Repeating Characters
leetcodealgorithmmediumpythonsliding-windowhash-mapstringtwo-pointersproblem-solving
Oct 8, 2025
[Medium] 240. Search a 2D Matrix II
pythonbinary-searchmatrix2d-arraydivide-conquersearchoptimizationproblem-solving
Oct 6, 2025
[Medium] 912. Sort an Array
pythonsortingmerge-sortheap-sortcounting-sortdata-structuresdivide-conquerproblem-solving
Oct 5, 2025
[Hard] 218. The Skyline Problem
pythonsweep-linepriority-queuedata-structuresunion-findproblem-solving
Oct 4, 2025
[Medium] 990. Satisfiability of Equality Equations
pythonconnected-componentsgraph-coloringdisjoint-setproblem-solving
Oct 3, 2025
[Medium] 96. Unique Binary Search Trees
pythonbinary-search-treesproblem-solving
Sep 30, 2025
[Medium] 131. Palindrome Partitioning
pythonpartitioningproblem-solving
Sep 29, 2025
[Medium] 77. Combinations
pythoncombinationsdfsproblem-solving
Sep 25, 2025
[Medium] 89. Gray Code
pythongray-codeproblem-solving
Sep 25, 2025
[Medium] 54. Spiral Matrix
pythonspiral-matrixproblem-solving
Sep 25, 2025
[Medium] 50. Pow(x, n)
pythonpowproblem-solving
Sep 24, 2025
[Medium] 62. Unique Paths
pythonunique-pathsproblem-solving
Sep 24, 2025
[Hard] 25. Reverse Nodes in k-Group
pythonreverse-nodesk-grouprecursionproblem-solving
Sep 24, 2025
[Medium] 48. Rotate Image
pythonrotate-imagein-placeproblem-solving
Sep 24, 2025
[Medium] 150. Evaluate Reverse Polish Notation
pythonreverse-polish-notationrpnproblem-solving
Sep 24, 2025
[Hard] 317. Shortest Distance from All Buildings
pythonshortest-distancebuildingsproblem-solving
Sep 24, 2025
[Medium] 1242. Web Crawler Multithreaded
pythonweb-crawlerconcurrent-programmingproblem-solving
Sep 24, 2025
[Medium] 794. Valid Tic-Tac-Toe State
pythontic-tac-toegame-validationproblem-solving
Sep 24, 2025
Meta‑Style LeetCode Question List
leetcodealgorithmmetainterview-preparationpractice-listfaangcoding-interviewproblem-solvingcompetitive-programmingdata-structures
Sep 24, 2025
🧩 Hash Table Mastery List
leetcodealgorithmhashdata-structuresinterview-preparationpractice-listhash-tablehash-mapproblem-solvingcompetitive-programming
Sep 24, 2025
LeetCode Linked List Mastery List
leetcodealgorithmlinked-listdata-structuresinterview-preparationpractice-listproblem-solvingcompetitive-programmingpointerstraversal
Sep 24, 2025
[Medium] 24. Swap Nodes in Pairs
pythonswap-nodesrecursioniterativeproblem-solving
Sep 23, 2025
📚 Python Quick Reference for LeetCode
pythondata-structuresreferencecheat-sheetprogrammingcontainersalgorithmscompetitive-programming
Sep 23, 2025
[Medium] 33. Search in Rotated Sorted Array
pythonrotated-arraysearchproblem-solving