We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Wouldn't really result in a "near rewrite". Considering, for this problem, an hourglass is well-defined to be contained within a 3x3 matrix you'd simply change the bound to n-2 rather than hard-coding 4 (if that's the route you went).
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Day 11: 2D Arrays
You are viewing a single comment's thread. Return to all comments →
Wouldn't really result in a "near rewrite". Considering, for this problem, an hourglass is well-defined to be contained within a 3x3 matrix you'd simply change the bound to n-2 rather than hard-coding 4 (if that's the route you went).