Rotate by 90 degree GFG POTD (05 NOVEMBER 2024)
HTML-код
- Опубликовано: 27 ноя 2024
- ⭐IN THE GIVEN PROBLEM , WE NEED TO ROTATE THE GIVNE MATRIX BY 90 DEGREE AND RETURN THEIR VALUES, IN SUCH ORDER.
⭐FOR SOLVING THE PROBLEM , THE ARRPOACH IS TO MAKE FIRST ROW AS COLUMN AND PLACED IT TO LAST ROW.
⭐ TIME COMPLEXITY: O(n2)
⭐SPACE COMPLEXITY: O(n2)