Skip to content

Tag Archives: magic-square

Given an integer X which is a perfect square, the task is to find the square root of it by using long division method. Examples:… Read More
Given an odd integer N, the task is to find the magic square of order N. Examples: Input: N = 3 Output: 6 1 8… Read More
Given a 3X3 matrix mat with it’s left diagonal elements missing (set to 0), considering the sum of every row, column and diagonal of the… Read More