RealAmitShah's blog

By RealAmitShah, history, 4 years ago, In English

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

Full text and comments »

  • Vote: I like it
  • -10
  • Vote: I do not like it

By RealAmitShah, history, 4 years ago, In English

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

Code

Full text and comments »

  • Vote: I like it
  • -5
  • Vote: I do not like it