All puzzles › OA Screening Round

OA Screening Round Practice Problems

22 puzzles (3 easy, 15 medium, 4 hard), in Python, JavaScript and C++.

Online assessment practice. Real OA shape: a situation, no hint about which technique it wants, and the first minute spent working out what the question even is.

The puzzles, easiest first

  1. Back to the Dock (Easy): A robot follows a string of moves: N, S, E, and W, one square each.
  2. Floors Travelled (Easy): An elevator starts on floor 0 and answers calls in the order they were pressed.
  3. The Longest Quiet Spell (Easy): A status board logs one HTTP code per minute.
  4. Below the Line (Medium): A warehouse feed lists stock changes as [productCode, change], where positive is a delivery and negative is a sale.
  5. Scanned Twice Too Soon (Medium): A scanner sometimes reads the same parcel twice.
  6. Seating the Groups (Medium): A row of seats is part booked (1) and part free (0).
  7. The Busiest Aisles (Medium): Every scan at the register logs a product code.
  8. The Busiest Minute on the Yard (Medium): Trucks book the yard as [arrive, leave].
  9. The Faulty Badges (Medium): Each badge code has a built-in check.
  10. The Loading Belt (Medium): Packages come down a belt in a fixed order, and you can't rearrange them.
  11. The Priority Printer (Medium): Documents wait in line at a printer, each with a priority.
  12. The Unmatched Entries (Medium): Given a list of charges and a list of payments, return every charge that doesn't have a payment of the same amount, smallest first.
  13. Three Depots, One Manifest (Medium): Each depot sends a list of parcel IDs already sorted from smallest to largest.
  14. Too Many Requests (Medium): A gateway allows at most max calls in any window of window seconds.
  15. Totals for Every Shift (Medium): A production line logs its output once an hour.
  16. Two Meetings, One Room (Medium): Given room bookings as [start, end], find the first clash when the bookings are read in order of start time, and return the two booking numbers, smaller first.
  17. Where the Line Balances (Medium): Crates sit in a row on a beam.
  18. Which Build Is Newer? (Medium): Given two version strings like "1.10.2" and "1.9.9", return 1 if the first is newer, -1 if it's older, or 0 if they're the same.
  19. How Many Rounds to Build It (Hard): Each part lists the parts that have to be built before it.
  20. Spills That Never Reached the Wall (Hard): A floor is mapped as a grid of clean (0) and spill (1) cells, where spills connect up, down, left, and right.
  21. The Narrowest Shelf (Hard): Boxes go on a shelf in the order listed.
  22. Wait for a Cheaper Fare (Hard): Fares are published one per day.

Practice another pattern

Or browse by subject

Browse all 676 puzzles