-
Notifications
You must be signed in to change notification settings - Fork 20k
Added MirrorOfMatrix.java #4461
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Co-authored-by: Piotr Idzik <65706193+vil02@users.noreply.github.com>
I would be grateful if my contribution is accepted and merged using "hacktoberfest-accepted" label. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As mentioned earlier: please add tests for your class.
is test file okay? |
Co-authored-by: Piotr Idzik <65706193+vil02@users.noreply.github.com>
Co-authored-by: Piotr Idzik <65706193+vil02@users.noreply.github.com>
Co-authored-by: Piotr Idzik <65706193+vil02@users.noreply.github.com>
Co-authored-by: Piotr Idzik <65706193+vil02@users.noreply.github.com>
I would be grateful if my contribution is accepted and merged using "hacktoberfest-accepted" label. |
It is not needed: the hacktoberfest page will recognize this contribution, because this repo has hactoberest as a one of the topics. @Aman28801 please have a look at this commits: ec8e9f8 |
Thank you for the help @vil02 throughout the pull request as this is my first contribution towards open source. |
Problem Statement :-
We have given an array of m x n (where m is the number of rows and n is the number of columns).
Print the new matrix in such a way that the new matrix is the mirror image of the original matrix.
Solution;_
it basically traverse column wise and swap the starting and ending element of each row to get the mirror of 2D array
In this pull request, I am submitting the code of this problem that prioritize readability and user-friendliness.