pratik-choudhari / AlgoCode

Welcome everyone!🌟 Here you can solve problems, build scrappers and much more💻
https://github.com/pratik-choudhari/AlgoCode
MIT License
131 stars 166 forks source link

Inplace rotate square matrix by 90 degrees #191

Closed ShivamYadav-Coding closed 4 years ago

ShivamYadav-Coding commented 4 years ago

Feature ✅

Description

Given a square matrix, turn it by 90 degrees in anti-clockwise direction without using any extra space.

Example

Input: Matrix: 1 2 3 4 5 6 7 8 9 Output: 3 6 9 2 5 8 1 4 7 The given matrix is rotated by 90 degree in anti-clockwise direction.

Input: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 Output: 4 8 12 16 3 7 11 15 2 6 10 14 1 5 9 13 The given matrix is rotated by 90 degree in anti-clockwise direction.

Checklist:

Contributors are supposed to mention their coding language while asking for assignment

Palaash05 commented 4 years ago

I would like to work in this problem using python. I request you to assign it to me.

nayanika0208 commented 4 years ago

Hi , i can solve the problem in c++,Can you assign it to me??

nayanika0208 commented 4 years ago

205

Please check my PR

SusnatoPrime007 commented 4 years ago

I would like to work on this in java,can you assign this to me please?

SusnatoPrime007 commented 4 years ago

I have submitted my PR for this in java section,kindly check