Skip to content

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

Merged
merged 57 commits into from
Oct 3, 2023
Merged

Added MirrorOfMatrix.java #4461

merged 57 commits into from
Oct 3, 2023

Conversation

Aman28801
Copy link
Contributor

@Aman28801 Aman28801 commented Sep 30, 2023

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.

  • I have read CONTRIBUTING.md.
  • This pull request is all my own work -- I have not plagiarized it.
  • All filenames are in PascalCase.
  • All functions and variable names follow Java naming conventions.
  • All new algorithms have a URL in their comments that points to Wikipedia or other similar explanations.

@vil02 vil02 self-assigned this Sep 30, 2023
Aman28801 and others added 3 commits October 1, 2023 14:35
Co-authored-by: Piotr Idzik <65706193+vil02@users.noreply.github.com>
@Aman28801 Aman28801 requested a review from vil02 October 1, 2023 11:27
@Aman28801
Copy link
Contributor Author

I would be grateful if my contribution is accepted and merged using "hacktoberfest-accepted" label.

Copy link
Member

@vil02 vil02 left a 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.

@Aman28801
Copy link
Contributor Author

is test file okay?

@Aman28801 Aman28801 requested a review from vil02 October 2, 2023 20:30
Co-authored-by: Piotr Idzik <65706193+vil02@users.noreply.github.com>
Aman28801 and others added 4 commits October 3, 2023 16:23
Co-authored-by: Piotr Idzik <65706193+vil02@users.noreply.github.com>
Co-authored-by: Piotr Idzik <65706193+vil02@users.noreply.github.com>
@Aman28801 Aman28801 requested a review from vil02 October 3, 2023 12:16
@Aman28801
Copy link
Contributor Author

I would be grateful if my contribution is accepted and merged using "hacktoberfest-accepted" label.

@vil02
Copy link
Member

vil02 commented Oct 3, 2023

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

@vil02 vil02 enabled auto-merge (squash) October 3, 2023 16:40
@Aman28801
Copy link
Contributor Author

Thank you for the help @vil02 throughout the pull request as this is my first contribution towards open source.

@vil02 vil02 merged commit 329cc3b into TheAlgorithms:master Oct 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants