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.
- Prepare
- Data Structures
- Arrays
- 2D Array - DS
- Discussions
2D Array - DS
2D Array - DS
Sort by
recency
|
3654 Discussions
|
Please Login in order to post a comment
Time complexity: O(n^2) Space complexity: O(1)
Of course, one can assign the coordination of the 2-D array to compute hourglasses value directly.
Swift Solution :-
Javascript Solution
Here is my c++ solution you can watch video explanation here : https://www.youtube.com/watch?v=aJv6KLHL3Qk