• + 1 comment

    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.