InterviewDB Experience

Cats and Rabbits Game: Implement Turn-Based Predator-Prey Game Simulation

Interview Experience

Round 1 - Coding / OOD Problem Simulate a turn-based grid game where cats try to catch rabbits. Each turn: rabbits move randomly to an adjacent cell; cats move one step toward the nearest rabbit. If a cat and rabbit occupy the same cell, the rabbit is caught. Simulate until all rabbits are caught or a max turn limit is reached. Example Follow-ups How does your cat movement strategy change if there are multiple rabbits — does the cat chase the nearest or apply some heuristic? How do you prevent t…

Full Details

🔒

Unlock all Asana questions

Full insider details, leaked discussions, and candidate experiences.

Get full access — $100 a year, unlimited access

About This Question

This is a candidate experience report from a asana interview during the phone round.

It covers the following topics: Ood, Phone, Coding, Onsite, Matrix .