Approach hintTry it first, then revealHide
Reverse the flow: from each ocean's border cells, move to neighbours of equal or greater height. Cells reached from both oceans form the answer.
Reverse the flow: from each ocean's border cells, move to neighbours of equal or greater height. Cells reached from both oceans form the answer.