Halloween SalePremium questions, over 30% offUnlock all premium questions for over 30% off
Worm Game
Medium
Question
Design a WormGame class that simulates a worm moving on a 2D grid. The worm starts at the top-left corner (0, 0) with length 1. It grows by 1 unit every 4 moves. The game ends (returning -1) if the worm goes out of bounds or collides with itself.
...
Asked at:Atlassian
More Atlassian interview questions
- Jump Boardmedium
- Plan Billingmedium
- Racing Lap Statsmedium
- Warehouse Trip Savereasy
- Path Routermedium
- Shuttle Route Pickupmedium
- Storage Hierarchy Statsmedium
- Snowpack Traileasy
OfferRetriever
Master technical interviews with real questions from top companies. Build your confidence and career.
LEGAL
© 2026 Purple Business Holdings LLC. All rights reserved. See Terms of Service.