Infosys OA 2021 | Precomputation & Permutations | Smart Square
Infosys · Question · Posted Jun 2026
Question 1: Smart Square Problem Statement Consider a matrix of size 3x3. A matrix is said to be a Smart Matrix if it consists of distinct numbers from 1 to 9 and the sum of every row, column and diagonal is completely divisible by 5. Given a matrix, find the minimum cost of converting it to a smart square by changing zero or more of its cells. We can convert any number a to b in the range of [1,9] ...
The full answer & interview discussion are available to premium members.
Log in Create a free account