[Community Puzzle] Longest coast

https://www.codingame.com/training/easy/longest-coast

Send your feedback or ask for help here!

Created by @Ayza,validated by @FredericLocquet,@AdHominem and @Darazdeblek.
If you have any issues, feel free to ping them.

Testcase 4 is tricky, it counts not only surrounding water but also inner lakes

true, surrounding may not be the best word to describe the goal. if you have any better suggestions please let me know. (alternatively I could mention that water inside the island counts)

coast, coastline, seashore waterside, waterfront…

for your selection

1 Like

Thanks, should be better now. changed the title aswell.