Simulation DSA Problems

177 simulation problems for coding interviews and campus placements, with hints and company tags. Below are the first 100 of 177: 72 easy, 13 medium and 15 hard. Practise them free on InternHack and track what you have solved.

Simulation problems, easiest first

  1. Add Binary (Easy)
  2. Add Digits (Easy)
  3. Add Strings (Easy)
  4. Ant on the Boundary (Easy)
  5. Apply Operations to an Array (Easy)
  6. Array Transformation (Easy)
  7. Available Captures for Rook (Easy)
  8. Backspace String Compare (Easy)
  9. Baseball Game (Easy)
  10. Bitwise OR of Even Numbers in an Array (Easy)
  11. Build Array from Permutation (Easy)
  12. Calculate Amount Paid in Taxes (Easy)
  13. Calculate Digit Sum of a String (Easy)
  14. Cells with Odd Values in a Matrix (Easy)
  15. Check If Digits Are Equal in String After Operations I (Easy)
  16. Clear Digits (Easy)
  17. Concatenation of Array (Easy)
  18. Convert 1D Array Into 2D Array (Easy)
  19. Count Distinct Numbers on Board (Easy)
  20. Count Integers With Even Digit Sum (Easy)
  21. Count of Matches in Tournament (Easy)
  22. Count Operations to Obtain Zero (Easy)
  23. Count Tested Devices After Test Operations (Easy)
  24. Create Target Array in the Given Order (Easy)
  25. Delete Greatest Value in Each Row (Easy)
  26. Design Parking System (Easy)
  27. Determine the Winner of a Bowling Game (Easy)
  28. Distribute Candies to People (Easy)
  29. Distribute Elements Into Two Arrays I (Easy)
  30. Divide a String Into Groups of Size k (Easy)
  31. Faulty Keyboard (Easy)
  32. Final Array State After K Multiplication Operations I (Easy)
  33. Final Value of Variable After Performing Operations (Easy)
  34. Find the Array Concatenation Value (Easy)
  35. Find the Child Who Has the Ball After K Seconds (Easy)
  36. Find the K-th Character in String Game I (Easy)
  37. Find the Winning Player in Coin Game (Easy)
  38. Find Winner on a Tic Tac Toe Game (Easy)
  39. Fizz Buzz (Easy)
  40. Flipping an Image (Easy)
  41. Fruits Into Baskets II (Easy)
  42. Generate Tag for Video Caption (Easy)
  43. Get Maximum in Generated Array (Easy)
  44. Keep Multiplying Found Values by Two (Easy)
  45. Make Array Elements Equal to Zero (Easy)
  46. Make Array Zero by Subtracting Equal Amounts (Easy)
  47. Matrix Similarity After Cyclic Shifts (Easy)
  48. Maximum Number of Operations With the Same Score I (Easy)
  49. Min Max Game (Easy)
  50. Minimum Number Game (Easy)
  51. Minimum Number of Chairs in a Waiting Room (Easy)
  52. Minimum Pair Removal to Sort Array I (Easy)
  53. Minimum String Length After Removing Substrings (Easy)
  54. Most Visited Sector in a Circular Track (Easy)
  55. Number of Students Unable to Eat Lunch (Easy)
  56. Pass the Pillow (Easy)
  57. Read N Characters Given Read4 (Easy)
  58. Reshape the Matrix (Easy)
  59. Reverse Degree of a String (Easy)
  60. Robot Return to Origin (Easy)
  61. Separate the Digits in an Array (Easy)
  62. Shift 2D Grid (Easy)
  63. Snake in Matrix (Easy)
  64. Sum of Digits of String After Convert (Easy)
  65. Take Gifts From the Richest Pile (Easy)
  66. Teemo Attacking (Easy)
  67. Time Needed to Buy Tickets (Easy)
  68. Total Distance Traveled (Easy)
  69. Transformed Array (Easy)
  70. Transpose Matrix (Easy)
  71. Water Bottles (Easy)
  72. Zigzag Grid Traversal With Skip (Easy)
  73. Adding Spaces to a String (Medium)
  74. Asteroid Collision (Medium)
  75. Average Waiting Time (Medium)
  76. Build an Array With Stack Operations (Medium)
  77. Calculate Score After Performing Instructions (Medium)
  78. Candy Crush (Medium)
  79. Car Pooling (Medium)
  80. Check Knight Tour Configuration (Medium)
  81. Clumsy Factorial (Medium)
  82. Complex Number Multiplication (Medium)
  83. Concatenation of Consecutive Binary Numbers (Medium)
  84. Count Collisions on a Road (Medium)
  85. Count Mentions Per User (Medium)
  86. Contain Virus (Hard)
  87. Design a Text Editor (Hard)
  88. Distribute Elements Into Two Arrays II (Hard)
  89. Final Array State After K Multiplication Operations II (Hard)
  90. Find Servers That Handled Most Number of Requests (Hard)
  91. Meeting Rooms III (Hard)
  92. Minimum Pair Removal to Sort Array II (Hard)
  93. Number of Valid Move Combinations On Chessboard (Hard)
  94. Number Of Ways To Reconstruct A Tree (Hard)
  95. Process String with Special Operations II (Hard)
  96. Read N Characters Given read4 II - Call Multiple Times (Hard)
  97. Robot Collisions (Hard)
  98. Text Justification (Hard)
  99. Time Taken to Cross the Door (Hard)
  100. Time to Cross a Bridge (Hard)

Companies that ask simulation problems

Before your interview

Most resumes are filtered by software before a recruiter reads them. Check your resume ATS score free, no signup needed.

Other DSA topics