swapnanildutta / Hackerrank-Codes

Here are some of the solutions to HackerRank questions.
MIT License
70 stars 196 forks source link

Solution for forming a magic square #356

Closed Nkzlxs closed 4 years ago

Nkzlxs commented 4 years ago

The algorithm is inspired by a hackerrank user @Kevinagin Rotating the numbers of the outer boundary of the square to find the lowest cost.