Simulation | LeetCode Problems

134 Simulation solutions to LeetCode solutions.

Simulation Problems View all solutions →

Multiply Strings

#43 Medium

Spiral Matrix

#54 Medium

Spiral Matrix II

#59 Medium

Add Binary

#67 Easy

Text Justification

#68 Hard

Read N Characters Given Read4

#157 Easy

Read N Characters Given read4 II - Call Multiple Times

#158 Hard

Add Digits

#258 Easy

Game of Life

#289 Medium

Design Tic-Tac-Toe

#348 Medium

Design Snake Game

#353 Medium

Fizz Buzz

#412 Easy

Add Strings

#415 Easy

Teemo Attacking

#495 Easy

Diagonal Traverse

#498 Medium

Complex Number Multiplication

#537 Medium

Output Contest Matches

#544 Medium

Reshape the Matrix

#566 Easy

Fraction Addition and Subtraction

#592 Medium

Solve the Equation

#640 Medium

Robot Return to Origin

#657 Easy

Baseball Game

#682 Easy

Asteroid Collision

#735 Medium

Contain Virus

#749 Hard

Flipping an Image

#832 Easy

Backspace String Compare

#844 Easy

Transpose Matrix

#867 Easy

Walking Robot Simulation

#874 Medium

Spiral Matrix III

#885 Medium

Validate Stack Sequences

#946 Medium

Reveal Cards In Increasing Order

#950 Medium

Sum of Even Numbers After Queries

#985 Easy

Available Captures for Rook

#999 Easy

Clumsy Factorial

#1006 Medium

Robot Bounded In Circle

#1041 Medium

Car Pooling

#1094 Medium

Distribute Candies to People

#1103 Easy

Queens That Can Attack the King

#1222 Medium

Cells with Odd Values in a Matrix

#1252 Easy

Shift 2D Grid

#1260 Easy

Find Winner on a Tic Tac Toe Game

#1275 Easy

Print Words Vertically

#1324 Medium

Create Target Array in the Given Order

#1389 Easy

Queries on a Permutation With Key

#1409 Medium

Build an Array With Stack Operations

#1441 Medium

Last Moment Before All Ants Fall Out of a Plank

#1503 Medium

Water Bottles

#1518 Easy

Find the Winner of an Array Game

#1535 Medium

Find Kth Bit in Nth Binary String

#1545 Medium

Most Visited Sector in a Circular Track

#1560 Easy

Find Latest Group of Size M

#1562 Medium

Count Unhappy Friends

#1583 Medium

Maximum Profit of Operating a Centennial Wheel

#1599 Medium

Design Parking System

#1603 Easy

Get Maximum in Generated Array

#1646 Easy

Concatenation of Consecutive Binary Numbers

#1680 Medium

Count of Matches in Tournament

#1688 Easy

Number of Students Unable to Eat Lunch

#1700 Easy

Average Waiting Time

#1701 Medium

Where Will the Ball Fall

#1706 Medium

Number of Orders in the Backlog

#1801 Medium

Minimum Number of Operations to Reinitialize a Permutation

#1806 Medium

Find the Winner of the Circular Game

#1823 Medium

Incremental Memory Leak

#1860 Medium

Find the Student that Will Replace the Chalk

#1894 Medium

Remove All Occurrences of a Substring

#1910 Medium

Cyclically Rotating a Grid

#1914 Medium

Build Array from Permutation

#1920 Easy

Concatenation of Array

#1929 Easy

Sum of Digits of String After Convert

#1945 Easy

Final Value of Variable After Performing Operations

#2011 Easy

Convert 1D Array Into 2D Array

#2022 Easy

Find Missing Observations

#2028 Medium

Simple Bank System

#2043 Medium

Number of Valid Move Combinations On Chessboard

#2056 Hard

Walking Robot Simulation II

#2069 Medium

Decode the Slanted Ciphertext

#2075 Medium

Watering Plants

#2079 Medium

Watering Plants II

#2105 Medium

Adding Spaces to a String

#2109 Medium

Execution of All Suffix Instructions Staying in a Grid

#2120 Medium

Divide a String Into Groups of Size k

#2138 Easy

Rearrange Array Elements by Sign

#2149 Medium

Keep Multiplying Found Values by Two

#2154 Easy

Partition Array According to Given Pivot

#2161 Medium

Count Operations to Obtain Zero

#2169 Easy

Find Three Consecutive Integers That Sum to a Given Number

#2177 Medium

Count Integers With Even Digit Sum

#2180 Easy

Merge Nodes in Between Zeros

#2181 Medium

Count Artifacts That Can Be Extracted

#2201 Medium

Count Collisions on a Road

#2211 Medium

Find Triangular Sum of an Array

#2221 Medium

Calculate Digit Sum of a String

#2243 Easy

Count Unguarded Cells in the Grid

#2257 Medium

Min Max Game

#2293 Easy

Replace Elements in an Array

#2295 Medium

Design a Text Editor

#2296 Hard

Calculate Amount Paid in Taxes

#2303 Easy

Spiral Matrix IV

#2326 Medium

Equal Row and Column Pairs

#2352 Medium

Task Scheduler II

#2365 Medium

Time Needed to Rearrange a Binary String

#2380 Medium

Removing Stars From a String

#2390 Medium

Apply Operations to an Array

#2460 Easy

Total Cost to Hire K Workers

#2462 Medium

Difference Between Ones and Zeros in Row and Column

#2482 Medium

Design Memory Allocator

#2502 Medium

Smallest Value After Replacing With Sum of Prime Factors

#2507 Medium

Count Distinct Numbers on Board

#2549 Easy

Separate the Digits in an Array

#2553 Easy

Find the Array Concatenation Value

#2562 Easy

Pass the Pillow

#2582 Easy

Check Knight Tour Configuration

#2596 Medium

Find the Losers of the Circular Game

#2682 Easy

Minimum String Length After Removing Substrings

#2696 Easy

Semi-Ordered Permutation

#2717 Easy

Total Distance Traveled

#2739 Easy

Find Maximum Number of String Pairs

#2744 Easy

Robot Collisions

#2751 Hard

Relocate Marbles

#2766 Medium

Faulty Keyboard

#2810 Easy

Last Visited Integers

#2899 Easy

Matrix Similarity After Cyclic Shifts

#2946 Easy

Count Tested Devices After Test Operations

#2960 Easy

Double Modular Exponentiation

#2961 Medium

Ant on the Boundary

#3028 Easy

Maximum Number of Operations With the Same Score I

#3038 Easy

Minimum Operations to Exceed Threshold Value II

#3066 Medium

Distribute Elements Into Two Arrays I

#3069 Easy

Water Bottles II

#3100 Medium

Find the Number of Distinct Colors Among the Balls

#3160 Medium

Clear Digits

#3174 Easy

Find the Child Who Has the Ball After K Seconds

#3178 Easy

Check If Digits Are Equal in String After Operations I

#3461 Easy