Given an n x n matrix, print its elements in a Z pattern: the whole top row left to right, then the anti-diagonal from top-right down to bottom-left (excluding the corners already printed), then the…
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.