Sunflowers
Problem description here
Solution Code
Approach
There are only four cases so we can just check all of them:
- there have been no rotations, print original (smallest number is in top left corner)
- 90° clockwise rotation in which case the bottom left number is the smallest (top left is smaller than number on right, larger than number below)
- 180° rotation where the top left number will be the largest
- 270° rotation where the top left will be smaller than the number to its right and larger than the number below it