Skip to content
Use code for 50% offSee plans

Simulation Problems

171 Simulation LeetCode problems · Solve with AI-powered hints & step-by-step explanations.

Learn the coding interview patterns behind these problems.

Start with these

All Simulation problems

43 Multiply Strings Medium54 Spiral Matrix Medium59 Spiral Matrix II Medium67 Add Binary Easy68 Text Justification Hard258 Add Digits Easy289 Game of Life Medium412 Fizz Buzz Easy415 Add Strings Easy495 Teemo Attacking Easy498 Diagonal Traverse Medium537 Complex Number Multiplication Medium566 Reshape the Matrix Easy592 Fraction Addition and Subtraction Medium640 Solve the Equation Medium657 Robot Return to Origin Easy682 Baseball Game Easy735 Asteroid Collision Medium749 Contain Virus Hard832 Flipping an Image Easy844 Backspace String Compare Easy867 Transpose Matrix Easy874 Walking Robot Simulation Medium885 Spiral Matrix III Medium946 Validate Stack Sequences Medium950 Reveal Cards In Increasing Order Medium985 Sum of Even Numbers After Queries Medium999 Available Captures for Rook Easy1006 Clumsy Factorial Medium1041 Robot Bounded In Circle Medium1094 Car Pooling Medium1103 Distribute Candies to People Easy1222 Queens That Can Attack the King Medium1252 Cells with Odd Values in a Matrix Easy1260 Shift 2D Grid Easy1275 Find Winner on a Tic Tac Toe Game Easy1324 Print Words Vertically Medium1389 Create Target Array in the Given Order Easy1404 Number of Steps to Reduce a Number in Binary Representation to One Medium1409 Queries on a Permutation With Key Medium1441 Build an Array With Stack Operations Medium1503 Last Moment Before All Ants Fall Out of a Plank Medium1518 Water Bottles Easy1535 Find the Winner of an Array Game Medium1545 Find Kth Bit in Nth Binary String Medium1560 Most Visited Sector in a Circular Track Easy1562 Find Latest Group of Size M Medium1583 Count Unhappy Friends Medium1599 Maximum Profit of Operating a Centennial Wheel Medium1603 Design Parking System Easy1646 Get Maximum in Generated Array Easy1680 Concatenation of Consecutive Binary Numbers Medium1688 Count of Matches in Tournament Easy1700 Number of Students Unable to Eat Lunch Easy1701 Average Waiting Time Medium1706 Where Will the Ball Fall Medium1801 Number of Orders in the Backlog Medium1806 Minimum Number of Operations to Reinitialize a Permutation Medium1823 Find the Winner of the Circular Game Medium1860 Incremental Memory Leak Medium1894 Find the Student that Will Replace the Chalk Medium1910 Remove All Occurrences of a Substring Medium1914 Cyclically Rotating a Grid Medium1920 Build Array from Permutation Easy1929 Concatenation of Array Easy1945 Sum of Digits of String After Convert Easy2011 Final Value of Variable After Performing Operations Easy2022 Convert 1D Array Into 2D Array Easy2028 Find Missing Observations Medium2043 Simple Bank System Medium2056 Number of Valid Move Combinations On Chessboard Hard2069 Walking Robot Simulation II Medium2073 Time Needed to Buy Tickets Easy2075 Decode the Slanted Ciphertext Medium2079 Watering Plants Medium2105 Watering Plants II Medium2109 Adding Spaces to a String Medium2120 Execution of All Suffix Instructions Staying in a Grid Medium2138 Divide a String Into Groups of Size k Easy2149 Rearrange Array Elements by Sign Medium2154 Keep Multiplying Found Values by Two Easy2161 Partition Array According to Given Pivot Medium2169 Count Operations to Obtain Zero Easy2177 Find Three Consecutive Integers That Sum to a Given Number Medium2180 Count Integers With Even Digit Sum Easy2181 Merge Nodes in Between Zeros Medium2201 Count Artifacts That Can Be Extracted Medium2211 Count Collisions on a Road Medium2221 Find Triangular Sum of an Array Medium2243 Calculate Digit Sum of a String Easy2257 Count Unguarded Cells in the Grid Medium2293 Min Max Game Easy2295 Replace Elements in an Array Medium2296 Design a Text Editor Hard2303 Calculate Amount Paid in Taxes Easy2326 Spiral Matrix IV Medium2327 Number of People Aware of a Secret Medium2352 Equal Row and Column Pairs Medium2357 Make Array Zero by Subtracting Equal Amounts Easy2365 Task Scheduler II Medium2380 Time Needed to Rearrange a Binary String Medium2390 Removing Stars From a String Medium2402 Meeting Rooms III Hard2460 Apply Operations to an Array Easy2462 Total Cost to Hire K Workers Medium2482 Difference Between Ones and Zeros in Row and Column Medium2500 Delete Greatest Value in Each Row Easy2502 Design Memory Allocator Medium2507 Smallest Value After Replacing With Sum of Prime Factors Medium2532 Time to Cross a Bridge Hard2549 Count Distinct Numbers on Board Easy2553 Separate the Digits in an Array Easy2558 Take Gifts From the Richest Pile Easy2562 Find the Array Concatenation Value Easy2582 Pass the Pillow Easy2593 Find Score of an Array After Marking All Elements Medium2596 Check Knight Tour Configuration Medium2660 Determine the Winner of a Bowling Game Easy2679 Sum in a Matrix Medium2682 Find the Losers of the Circular Game Easy2696 Minimum String Length After Removing Substrings Easy2717 Semi-Ordered Permutation Easy2739 Total Distance Traveled Easy2744 Find Maximum Number of String Pairs Easy2751 Robot Collisions Hard2766 Relocate Marbles Medium2810 Faulty Keyboard Easy2899 Last Visited Integers Easy2946 Matrix Similarity After Cyclic Shifts Easy2960 Count Tested Devices After Test Operations Easy2961 Double Modular Exponentiation Medium2974 Minimum Number Game Easy3028 Ant on the Boundary Easy3038 Maximum Number of Operations With the Same Score I Easy3066 Minimum Operations to Exceed Threshold Value II Medium3069 Distribute Elements Into Two Arrays I Easy3072 Distribute Elements Into Two Arrays II Hard3080 Mark Elements on Array by Performing Queries Medium3100 Water Bottles II Medium3160 Find the Number of Distinct Colors Among the Balls Medium3168 Minimum Number of Chairs in a Waiting Room Easy3174 Clear Digits Easy3175 Find The First Player to win K Games in a Row Medium3178 Find the Child Who Has the Ball After K Seconds Easy3179 Find the N-th Value After K Seconds Medium3222 Find the Winning Player in Coin Game Easy3242 Design Neighbor Sum Service Easy3248 Snake in Matrix Easy3264 Final Array State After K Multiplication Operations I Easy3266 Final Array State After K Multiplication Operations II Hard3271 Hash Divided String Medium3304 Find the K-th Character in String Game I Easy3324 Find the Sequence of Strings Appeared on the Screen Medium3354 Make Array Elements Equal to Zero Easy3360 Stone Removal Game Easy3379 Transformed Array Easy3412 Find Mirror Score of a String Medium3417 Zigzag Grid Traversal With Skip Easy3433 Count Mentions Per User Medium3461 Check If Digits Are Equal in String After Operations I Easy3477 Fruits Into Baskets II Easy3494 Find the Minimum Amount of Time to Brew Potions Medium3498 Reverse Degree of a String Easy3507 Minimum Pair Removal to Sort Array I Easy3510 Minimum Pair Removal to Sort Array II Hard3522 Calculate Score After Performing Instructions Medium3561 Resulting String After Adjacent Removals Medium3582 Generate Tag for Video Caption Easy3597 Partition String Medium3612 Process String with Special Operations I Medium3614 Process String with Special Operations II Hard