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.
why middle has to be 5?
isn't this a valid magical square with 6 at the middle?:
5 7 6
7 6 5
6 5 7
Actually, most test cases for this problem are incorrect. in 2/3 of them correct answers are lower then the expected ones.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Forming a Magic Square
You are viewing a single comment's thread. Return to all comments →
why middle has to be 5? isn't this a valid magical square with 6 at the middle?: 5 7 6 7 6 5 6 5 7 Actually, most test cases for this problem are incorrect. in 2/3 of them correct answers are lower then the expected ones.