You are given a perfect binary tree where all leaves are on the same level, and every parent has two children. The binary tree has the following definition:
You are given an m x n binary matrix grid. An island is a group of 1's (representing land) connected 4-directionally (horizontal or vertical.) You may assume al...