This is a spin off question from the problem Number of Islands. The idea is to keep track of the direction of your recursion for every island and build a string based on that island.
Number of Islands Explanation:
SOCIAL
----------------------------------------------------------------------------------------------------------------
Follow me on Twitter:
Follow me on Instagram:
Follow me on Github:
0 Yorumlar