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.
Nice explanation. I used this logic and wrote the python code as under. Instead of constructing all magic squares, I found out cost for all magic squares and took minimum.
Forming a Magic Square
You are viewing a single comment's thread. Return to all comments →
Nice explanation. I used this logic and wrote the python code as under. Instead of constructing all magic squares, I found out cost for all magic squares and took minimum.