Simulation
67 problems
Simulation problems require implementing the described process step by step. Focus on correctly handling edge cases and state transitions. Common in geometry, game problems, and string manipulation. Optimize only if the naive simulation exceeds the time limit.
- 68.Text JustificationHard
- 498.Diagonal TraverseMedium
- 592.Fraction Addition and SubtractionUnknown
- 657.Robot Return to OriginUnknown
- 799.Champagne TowerMedium
- 832.Flipping an ImageEasy
- 838.Push DominoesMedium
- 874.Walking Robot SimulationMedium
- 885.Spiral Matrix IIIMedium
- 1006.Clumsy FactorialMedium
- 1503.Last Moment Before All Ants Fall Out of a PlankUnknown
- 1518.Water BottlesUnknown
- 1545.Find Kth Bit in Nth Binary StringEasy
- 1598.Crawler Log FolderEasy
- 1680.Concatenation of Consecutive Binary NumbersUnknown
- 1700.Number of Students Unable to Eat LunchEasy
- 1701.Average Waiting TimeMedium
- 1823.Find the Winner of the Circular GameMedium
- 1861.Rotating the BoxEasy
- 1894.Find the Student that Will Replace the ChalkUnknown
- 1920.Build Array from PermutationEasy
- 1945.Sum of Digits of String After ConvertUnknown
- 2011.Final Value of Variable After Performing OperationsUnknown
- 2017.Grid GameUnknown
- 2022.Convert 1D Array Into 2D ArrayMedium
- 2028.Find Missing ObservationsUnknown
- 2043.Simple Bank SystemUnknown
- 2109.Adding Spaces to a StringEasy
- 2138.Divide a String Into Groups of Size kUnknown
- 2154.Keep Multiplying Found Values by TwoEasy
- 2169.Count Operations to Obtain ZeroUnknown
- 2181.Merge Nodes in Between ZerosMedium
- 2211.Count Collisions on a RoadUnknown
- 2221.Find Triangular Sum of an ArrayMedium
- 2257.Count Unguarded Cells in the GridUnknown
- 2326.Spiral Matrix IVHard
- 2434.Using a Robot to Print the Lexicographically Smallest StringMedium
- 2460.Apply Operations to an ArrayEasy
- 2553.Separate the Digits in an ArrayMedium
- 2558.Take Gifts From the Richest PileEasy
- 2582.Pass the PillowUnknown
- 2593.Find Score of an Array After Marking All ElementsMedium
- 2639.Find the Width of Columns of a GridUnknown
- 2678.Number of Senior CitizensEasy
- 2696.Minimum String Length After Removing SubstringsEasy
- 2718.Sum of Matrix After QueriesUnknown
- 2751.Robot CollisionsUnknown
- 2946.Matrix Similarity After Cyclic ShiftsEasy
- 3100.Water Bottles IIEasy
- 3160.Find the Number of Distinct Colors Among the BallsMedium
- 3170.Lexicographically Minimum String After Removing StarsUnknown
- 3174.Clear DigitsEasy
- 3228.Maximum Number of Operations to Move Ones to the EndUnknown
- 3264.Final Array State After K Multiplication Operations IEasy
- 3304.Find the K-th Character in String Game IUnknown
- 3379.Transformed ArrayMedium
- 3403.Find the Lexicographically Largest String From the Box IUnknown
- 3433.Count Mentions Per UserMedium
- 3461.Check If Digits Are Equal in String After Operations IEasy
- 3507.Minimum Pair Removal to Sort Array IUnknown
- 3510.Minimum Pair Removal to Sort Array IIUnknown
- 3516.Find Closest PersonUnknown
- 3531.Count Covered Buildings+Unknown
- 3542.Minimum Operations to Convert All Elements to ZeroUnknown
- 3606.Coupon Code ValidatorUnknown
- 3607.Power Grid MaintenanceUnknown
- 3637.Trionic Array IUnknown