package
0.0.0-20240804102548-352ddc8ad9e6
Repository: https://github.com/lruggieri/daily-coding-problems.git
Documentation: pkg.go.dev

# README

Count the number of different countries that a map contains.

1  1  1
1  2  1
2  3  3

a country is group of neighbouring cells. A cell is a neighbour of another one if they are next to each other orthogonally (meaning north, south, east and west) and they have the same value.

The above example should yield 4.