Given a square matrix mat[][] of size N x N. The task is to rotate it by 90 degrees in anti-clockwise direction without using any extra space.
Problem Link
if anyone could look at my code and tell where am I going wrong, PLEASE
code
Given a square matrix mat[][] of size N x N. The task is to rotate it by 90 degrees in anti-clockwise direction without using any extra space.
Problem Link
if anyone could look at my code and tell where am I going wrong, PLEASE
This code is failing for test case
5 50
1 3 100
1 5 10
2 3 123
5 4 55
Ans — 8,
Output — 9
anyone, please help me with this problem. ThankYou