Max Area of Island - Largest in Boolean Matrix
Given a binary 2D matrix, find area of the largest region of 1s which are connected horizontally, vertically or diagonally. Examples: Input: M[][]= {{1, 0, 0, 0, 1, 0, 0}, {0, 1, 0, 0, 1, 1, 0}, {1, 1, 0, 0, 0, 0, 0}, {1, 0, 0, 1, 1, 0, 0}, {1, 0, 0, 1, 0, 1, 1}} Output: 6Explanation: The region in