Rotting Fruit

Talk it through out loud with your AI coach.

The problem

  • medium
  • Pro

A grid holds empty cells, fresh fruit and rotten fruit. Each minute, every fresh fruit directly above, below, left or right of a rotten one becomes rotten. Find how many minutes pass until no fresh fruit remains, or report that it never happens.