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.
Your solution assumes that the array is already available for you to reference. Other people have nested for loops as they need to create or read in the matrix from the input in order to access it. Other than that difference, your solution is similar to the others.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Diagonal Difference
You are viewing a single comment's thread. Return to all comments →
Your solution assumes that the array is already available for you to reference. Other people have nested for loops as they need to create or read in the matrix from the input in order to access it. Other than that difference, your solution is similar to the others.