> For the complete documentation index, see [llms.txt](https://the-winrars.gitbook.io/writeups/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://the-winrars.gitbook.io/writeups/2020-writeups/rgbctf/misc/insert-witty-algorithm-name-here.md).

# insert witty algorithm name here

So basically just steal this code go brrr and remove the last 4 checks (since we dont want diagonals).

<https://www.geeksforgeeks.org/find-the-number-of-islands-set-2-using-disjoint-set/?ref=rp>

## flag: rgbCTF{119609}
