0 day streak
Anonymous · shared experience20 Jun 2023 · 5 views

Virtusa: Print a matrix in spiral order

Interview question #Virtusa SDE 1 Online assessment

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.

0 comments

Comments 0

No comments yet. Ask the author something, or add what happened in your own round.