← Questions
Is there an island of exactly size k?
0
I was asked this
No reports yet. Sign in to say where you were asked it.
Given a grid of land and water, answer many queries of the form "is there an island of exactly k cells?". Find the islands once, then answer each query quickly, and discuss what changes if the grid is updated between queries.
No official answer yet. Write yours on the right and run it.
Nothing published yet.
Write and test your solution herePython in your browser, the question's tests level by level, saved for you.Sign in to start coding
