← All problemsSign in

BACTERIAL GROWTH

You are given an array of dimension n*m. An organism lives in one the cells in the array. The organism in a second can do the following steps– 1) It can move from one cell to the adjacent cell (An adjacent cell is a cell which shares a side with the current cell). 2) Or it can reproduce. It can reproduce only if 3 cells are in a row (vertical or horizontal ), the middle one is empty and and on e

HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17

CodeSearch Tutor

Hints, not spoilers — it won’t hand over the full solution unless you insist.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start