Closed Harshit09-lang closed 2 years ago
@Harshit09-lang, Kindly create an issue first and then PR. And follow the PR template and contribution guidelines. I am not closing this PR since this was your first time. You may refer CONTRIBUTING.md and create an issue.
I have already created an issue. CodeForces Problem 263A #323 I have already followed all the guidelines that you mentioned.
@Harshit09-lang, Kindly add #323 in the issue id section of PR template.
Issue Number: #323 Sir, I have committed the changes that I was told about. Please merge this PR.
@Harshit09-lang, Kindly follow the PR template, In issue worked upon kindly mention your issue id and add screen shots as was mentioned in PR template.
Sir, I have added the Issue ID i.e. #323, and have also added the Screen Shots of the code running on the custom Test Cases. Please Review it.
Issue Id you have worked upon -
ISSUE ID: #323 Added the solution for the problem "A Beautiful Matrix". Problem Number: 263A
Question Statement: You've got a 5 × 5 matrix, consisting of 24 zeroes and a single number one. Let's index the matrix rows by numbers from 1 to 5 from top to bottom, let's index the matrix columns by numbers from 1 to 5 from left to right. In one move, you are allowed to apply one of the two following transformations to the matrix:
Swap two neighboring matrix rows, that is, rows with indexes i and i + 1 for some integer I (1 ≤ i < 5). Swap two neighboring matrix columns, that is, columns with indexes j and j + 1 for some integer j (1 ≤ j < 5). You think that a matrix looks beautiful if the single number one of the matrix is located in its middle (in the cell that is at the intersection of the third row and the third column). Count the minimum number of moves needed to make the matrix beautiful.
Checklist:
All the conditions should be fulfilled for considering your code for merging -
[x] I have mentioned the question as a comment in my solution file.
[x] My code follows the guidelines of this project.
[x] I have performed a self-review of my own code.
[x] I have commented on my code.
[x] My code gives the correct output.
[x] I confirm that I have not copied the code from anywhere. In case its found that I have copied even after a successful merge then I can be banned from the repository and Hacktoberfest.
[x] I affirm that I strictly follow contributing guidelines and code of conduct.
Here is the custom Test Case 1
Here is the custom Test Case 2
Please check and Merge this PR.