Anonymous · shared experience20 Jun 2023 · 5 views
Virtusa: Print a matrix in spiral order
Problem. Given a 2D array, print its elements in spiral order, starting at the top-left and moving clockwise toward the centre.
Context. It was the third of four problems in a campus coding test. The candidate ran short of time and passed only two test cases.
Comments 0
No comments yet. Ask the author something, or add what happened in your own round.