Ad
  • Custom User Avatar

    It's be nice to include 4x4 examples so the user doesn't have to find any on the web. For example:

    magicSquare([[4, 9, 6, 15],[14, 7, 12, 1],[11, 2, 13, 8],[5, 16, 3, 10]]); //true
    magicSquare([[4, 9, 6, 15],[14, 7, 12, 1],[12, 2, 13, 8],[5, 16, 3, 10]]); //false

    Cheers!

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution