GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

No menu could be recovered. Follow the blue links in the page.

This view

  • Original page
  • New address

GeezerVison is showing leetcodejavascript.com — Simulation LeetCode Problems | JavaScript Solutions

Simulation | LeetCode Problems

150 Simulation solutions to LeetCode solutions.

View Source Code on GitHub
All 2765 Array 1587 String 683 Hash Table 587 Math 485 Dynamic Programming 458 Sorting 384 Greedy 348 Depth-First Search 293 Binary Search 241 Tree 227 Breadth-First Search 224 Matrix 223 Two Pointers 200 Bit Manipulation 197 Binary Tree 175 Prefix Sum 159 Stack 154 Heap Priority Queue 152 Simulation 150 Counting 134 Graph 133 Design 123 Sliding Window 112 Backtracking 104 Union Find 79 Enumeration 78 Linked List 78 Ordered Set 60 Monotonic Stack 55 Trie 51 Number Theory 47 Divide and Conquer 46 Recursion 45 Bitmask 41 Queue 41 Binary Search Tree 40 Segment Tree 38 Memoization 36 Geometry 36 Combinatorics 35 Topological Sort 33 Hash Function 30 Binary Indexed Tree 28 Game Theory 26 String Matching 23 Shortest Path 23 Interactive 23 Rolling Hash 22 Data Stream 20 Brainteaser 16 Monotonic Queue 14 Randomized 12 Merge Sort 12 Doubly-Linked List 11 Counting Sort 10 Iterator 9 Probability and Statistics 7 Quickselect 7 Suffix Array 6 Bucket Sort 6 Line Sweep 5 Minimum Spanning Tree 5 Reservoir Sampling 4 Strongly Connected Component 3 Eulerian Circuit 3 Radix Sort 3 Rejection Sampling 2 Biconnected Component 1

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

Candy Crush

#723 Medium

Asteroid Collision

#735 Medium

Contain Virus

#749 Hard

Pour Water

#755 Medium

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

Array Transformation

#1243 Easy

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

Number of Spaces Cleaning Robot Cleaned

#2061 Medium

Walking Robot Simulation II

#2069 Medium

Time Needed to Buy Tickets

#2073 Easy

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

Number of People Aware of a Secret

#2327 Medium

Equal Row and Column Pairs

#2352 Medium

Make Array Zero by Subtracting Equal Amounts

#2357 Easy

Task Scheduler II

#2365 Medium

Time Needed to Rearrange a Binary String

#2380 Medium

Removing Stars From a String

#2390 Medium

Meeting Rooms III

#2402 Hard

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

Delete Greatest Value in Each Row

#2500 Easy

Design Memory Allocator

#2502 Medium

Smallest Value After Replacing With Sum of Prime Factors

#2507 Medium

Time Taken to Cross the Door

#2534 Hard

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

Alt and Tab Simulation

#3237 Medium

Maximum Total Area Occupied by Pistons

#3279 Hard

Find the K-th Character in String Game I

#3304 Easy

Maximum Number of Matching Indices After Right Shifts

#3400 Medium

Check If Digits Are Equal in String After Operations I

#3461 Easy

Fruits Into Baskets II

#3477 Easy

Find the Minimum Amount of Time to Brew Potions

#3494 Medium
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.