yashchat / max-product-grid Goto Github PK
View Code? Open in Web Editor NEWGiven an N × N grid of integers and an integer M ≤ N , determine the maximum product that can be made from M integers that are next to each other in the grid (horizontally, vertically, or diagonally.)