+ 4

Advent of Code 2020. I stuck on day 11ā€¼ļøPart One

My code: https://code.sololearn.com/c4a25A10a24a/?ref=app works correctly on an example input & outputs: 37ā€¼ļø but on puzzle input /too large for SL Playground/ makes a small mistake & outputs: 2107ā€¼ļø, the correct output is: 2194. This challenge is very similar to John Conway's "Game of Life", so I used the well-tested procedures from that code. I can't find error in algorithm logic. Any suggestions are welcomeā‰ļøšŸ¤” https://code.sololearn.com/cSRT2cW553AY/?ref=app

16th Dec 2020, 9:06 PM
Janusz Bujak šŸ‡µšŸ‡±
Janusz Bujak šŸ‡µšŸ‡± - avatar
1 Answer
+ 3
Victory ā€¼ļøšŸ˜ƒ Already fixedā€¼ļøšŸ‘ Stupid bugā€¼ļøWrong I assumed that the board is squareā‰ļøšŸ˜¬
18th Dec 2020, 9:59 AM
Janusz Bujak šŸ‡µšŸ‡±
Janusz Bujak šŸ‡µšŸ‡± - avatar