Cisco, Recently Asked Online Assessments in January, 2026 | Rotation of Matrix | 2D Arrays
Cisco · Question · Posted Jun 2026
Question 1: Rotation of Matrix Problem Statement Given a 2D square matrix, rotate it by 90 degrees clockwise. Note: Try to solve it by first scanning the matrix, then doing an in-place rotation, and then printing the rotated matrix. Input Format The first line of input contains T - the number of test cases. The first line of each test case contains N - the size of the matrix [NxN]. It is followed by N lines each containing N integers ...
The full answer & interview discussion are available to premium members.
Log in Create a free account