Google codejam 2014 – Qualification Round Problem – Magic trick
The following problem is from the Google code jam 2014 qualification round. Head-over there to read the complete problem description. The problem description is as follows. A magician starts by arranging 16 cards in a square grid: 4 rows of cards, with 4 cards in each row. Each card has a different number from…