Slow Growing Bacteria
CodeChefOpen on judge ↗
Given an nxn grid of cells, a bacteria colony can colonize these cells. Their growth after every second is governed by the following rules: 1) One new bacteria is born in cell (i ,j) if and only if either one of its four neighboring cells or the cell(i,j) itself has a bacteria population more than or equal to the threshold value, k. 2) Already living bacterias do not die. Given, the initial s
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.
Sign in to chat with the tutor and save your progress.
Sign in to start