Simulation coding problems
Simulation problems ask you to follow the rules exactly: games, queues, elevators and step-by-step processes. Clean code beats clever code here.
25 problems: 17 easy, 8 medium, 0 hard. Free to read; a free account solves them and earns XP and Aura.
- Duplicate Element RemoverPractice · +10 XP · queue, simulation, seteasy
- Find Element After StepsPractice · +10 XP · linked structures, simulation, arrayseasy
- Find End of Linked ListPractice · +10 XP · linked structures, simulation, arrayseasy
- Find Next NodePractice · +10 XP · linked structures, array traversal, simulationeasy
- Find Node at Fixed DepthPractice · +10 XP · linked structures, simulation, arrayseasy
- Find Path LengthPractice · +10 XP · linked structures, simulation, traversaleasy
- Find the First Negative NumberPractice · +10 XP · queue, simulation, arrayseasy
- Next ElementPractice · +10 XP · linked structures, arrays, simulationeasy
- Next Element in ArrayPractice · +10 XP · linked structures, simulation, arrayseasy
- Print Elements with Even IndexPractice · +10 XP · queue, simulation, basic iterationeasy
- Print Queue ContentsPractice · +10 XP · queue, simulation, basic programmingeasy
- Process First In First OutPractice · +10 XP · queue, simulation, beginnereasy
- Queue ReverserPractice · +10 XP · queue, stack, simulationeasy
- Reverse First K ElementsPractice · +10 XP · queue, stack, simulationeasy
- Sequence ReverserPractice · +10 XP · queue, deque, simulationeasy
- Stack Push CounterPractice · +10 XP · stack, simulation, arrayseasy
- Sum of Next ValuesPractice · +10 XP · linked structures, arrays, simulationeasy
- Array Linked List SimulationPractice · +20 XP · linked structures, simulation, cycle detectionmedium
- Balanced Parentheses SubsequencePractice · +20 XP · queue, stack, simulationmedium
- Find Duplicate Jump TargetPractice · +20 XP · linked structures, hash map, simulationmedium
- Find Duplicate Node in PathPractice · +20 XP · linked structures, arrays, cyclesmedium
- K-th Node in CyclePractice · +20 XP · linked structures, cycles, two pointersmedium
- Largest Element in PrefixPractice · +20 XP · queue, monotonic deque, simulationmedium
- Linked List CompressionPractice · +20 XP · linked structures, hash maps, simulationmedium
- Longest Prefix With Maximum FrequencyPractice · +20 XP · queue, simulation, monotonic dequemedium
Solve these free. Get paid in XP and Aura.
One tap with Google, no card. Every first accepted solve pays XP for the leaderboards and Aura for real goodies.
Other topics
Hash Map and Hashing101Arrays88Prefix Sums64SQL and Databases64Beginner Coding Problems60Graphs, BFS and DFS45Greedy41Sliding Window39Dynamic Programming37Sorting36Math and Number Theory36Strings35Two Pointers35Stack29Binary Search25Recursion22Linked List20Trees20Heap and Priority Queue18Matrix and Grid18Bit Manipulation18Queue and Deque16