method
Design — animated LeetCode walkthroughs
LeetCode problems solved with Design. Browse the complete tag, then watch the algorithm move — step-by-step animation, Python and Go.
168 problems · 110 animated · 58 locked
Full Design index
- 146LRU CacheWatch
- 155Min StackWatch
- 157Read N Characters Given Read4Locked
- 158Read N Characters Given read4 II - Call Multiple TimesLocked
- 170Two Sum III - Data structure designLocked
- 173Binary Search Tree IteratorWatch
- 208Implement Trie (Prefix Tree)Watch
- 211Design Add and Search Words Data StructureWatch
- 225Implement Stack using QueuesWatch
- 232Implement Queue using StacksWatch
- 244Shortest Word Distance IILocked
- 251Flatten 2D VectorLocked
- 271Encode and Decode StringsLocked
- 277Find the CelebrityLocked
- 278First Bad VersionWatch
- 281Zigzag IteratorLocked
- 284Peeking IteratorWatch
- 288Unique Word AbbreviationLocked
- 295Find Median from Data StreamWatch
- 297Serialize and Deserialize Binary TreeWatch
- 303Range Sum Query - ImmutableWatch
- 304Range Sum Query 2D - ImmutableWatch
- 307Range Sum Query - MutableWatch
- 308Range Sum Query 2D - MutableLocked
- 341Flatten Nested List IteratorWatch
- 346Moving Average from Data StreamLocked
- 348Design Tic-Tac-ToeLocked
- 352Data Stream as Disjoint IntervalsWatch
- 353Design Snake GameLocked
- 355Design TwitterWatch
- 359Logger Rate LimiterLocked
- 362Design Hit CounterLocked
- 374Guess Number Higher or LowerWatch
- 379Design Phone DirectoryLocked
- 380Insert Delete GetRandom O(1)Watch
- 381Insert Delete GetRandom O(1) - Duplicates allowedWatch
- 384Shuffle an ArrayWatch
- 431Encode N-ary Tree to Binary TreeLocked
- 432All O`one Data StructureWatch
- 449Serialize and Deserialize BSTWatch
- 460LFU CacheWatch
- 489Robot Room CleanerLocked
- 535Encode and Decode TinyURLWatch
- 588Design In-Memory File SystemLocked
- 604Design Compressed String IteratorLocked
- 622Design Circular QueueWatch
- 631Design Excel Sum FormulaLocked
- 635Design Log Storage SystemLocked
- 641Design Circular DequeWatch
- 642Design Search Autocomplete SystemLocked
- 676Implement Magic DictionaryWatch
- 677Map Sum PairsWatch
- 702Search in a Sorted Array of Unknown SizeLocked
- 703Kth Largest Element in a StreamWatch
- 705Design HashSetWatch
- 706Design HashMapWatch
- 707Design Linked ListWatch
- 715Range ModuleWatch
- 716Max StackLocked
- 729My Calendar IWatch
- 731My Calendar IIWatch
- 732My Calendar IIIWatch
- 745Prefix and Suffix SearchWatch
- 843Guess the WordWatch
- 855Exam RoomWatch
- 895Maximum Frequency StackWatch
- 900RLE IteratorWatch
- 901Online Stock SpanWatch
- 911Online ElectionWatch
- 919Complete Binary Tree InserterWatch
- 933Number of Recent CallsWatch
- 981Time Based Key-Value StoreWatch
- 1032Stream of CharactersWatch
- 1095Find in Mountain ArrayWatch
- 1114Print in OrderWatch
- 1115Print FooBar AlternatelyWatch
- 1116Print Zero Even OddWatch
- 1117Building H2OWatch
- 1146Snapshot ArrayWatch
- 1157Online Majority Element In SubarrayWatch
- 1166Design File SystemLocked
- 1172Dinner Plate StacksWatch
- 1188Design Bounded Blocking QueueLocked
- 1195Fizz Buzz MultithreadedWatch
- 1206Design SkiplistWatch
- 1226The Dining PhilosophersWatch
- 1236Web CrawlerLocked
- 1237Find Positive Integer Solution for a Given EquationWatch
- 1242Web Crawler MultithreadedLocked
- 1244Design A LeaderboardLocked
- 1261Find Elements in a Contaminated Binary TreeWatch
- 1274Number of Ships in a RectangleLocked
- 1279Traffic Light Controlled IntersectionLocked
- 1286Iterator for CombinationWatch
- 1348Tweet Counts Per FrequencyWatch
- 1352Product of the Last K NumbersWatch
- 1357Apply Discount Every n OrdersWatch
- 1381Design a Stack With Increment OperationWatch
- 1396Design Underground SystemWatch
- 1428Leftmost Column with at Least a OneLocked
- 1429First Unique NumberLocked
- 1472Design Browser HistoryWatch
- 1476Subrectangle QueriesWatch
- 1483Kth Ancestor of a Tree NodeWatch
- 1500Design a File Sharing SystemLocked
- 1533Find the Index of the Large IntegerLocked
- 1538Guess the Majority in a Hidden ArrayLocked
- 1570Dot Product of Two Sparse VectorsLocked
- 1586Binary Search Tree Iterator IILocked
- 1600Throne InheritanceWatch
- 1603Design Parking SystemWatch
- 1618Maximum Font to Fit a Sentence in a ScreenLocked
- 1622Fancy SequenceWatch
- 1628Design an Expression Tree With Evaluate FunctionLocked
- 1656Design an Ordered StreamWatch
- 1670Design Front Middle Back QueueWatch
- 1724Checking Existence of Edge Length Limited Paths IILocked
- 1756Design Most Recently Used QueueLocked
- 1778Shortest Path in a Hidden GridLocked
- 1797Design Authentication ManagerWatch
- 1804Implement Trie II (Prefix Tree)Locked
- 1810Minimum Path Cost in a Hidden GridLocked
- 1825Finding MK AverageWatch
- 1845Seat Reservation ManagerWatch
- 1865Finding Pairs With a Certain SumWatch
- 1912Design Movie Rental SystemWatch
- 1993Operations on TreeWatch
- 2013Detect SquaresWatch
- 2034Stock Price Fluctuation Watch
- 2043Simple Bank SystemWatch
- 2069Walking Robot Simulation IIWatch
- 2080Range Frequency QueriesWatch
- 2102Sequentially Ordinal Rank TrackerWatch
- 2166Design BitsetWatch
- 2227Encrypt and Decrypt StringsWatch
- 2241Design an ATM MachineWatch
- 2254Design Video Sharing PlatformLocked
- 2276Count Integers in IntervalsWatch
- 2286Booking Concert Tickets in GroupsWatch
- 2296Design a Text EditorWatch
- 2336Smallest Number in Infinite SetWatch
- 2349Design a Number Container SystemWatch
- 2353Design a Food Rating SystemWatch
- 2408Design SQLWatch
- 2424Longest Uploaded PrefixWatch
- 2502Design Memory AllocatorWatch
- 2526Find Consecutive Integers from a Data StreamWatch
- 2590Design a Todo ListLocked
- 2642Design Graph With Shortest Path CalculatorWatch
- 2671Frequency TrackerWatch
- 2728Count Houses in a Circular StreetLocked
- 2782Number of Unique CategoriesLocked
- 2936Number of Equal Numbers BlocksLocked
- 3023Find Pattern in Infinite Stream ILocked
- 3037Find Pattern in Infinite Stream IILocked
- 3064Guess the Number Using Bitwise Questions ILocked
- 3094Guess the Number Using Bitwise Questions IILocked
- 3242Design Neighbor Sum ServiceWatch
- 3369Design an Array Statistics Tracker Locked
- 3391Design a 3D Binary Matrix with Efficient Layer TrackingLocked
- 3408Design Task ManagerWatch
- 3484Design SpreadsheetWatch
- 3508Implement RouterWatch
- 3709Design Exam Scores TrackerWatch
- 3815Design Auction SystemWatch
- 3822Design Order Management SystemLocked
- 3829Design Ride Sharing SystemWatch
- 3885Design Event ManagerWatch