-
Notifications
You must be signed in to change notification settings - Fork 5
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
Move zeroes (Resolves #68) #96
Conversation
Hello, Mudassra. Good job, I will review your code. |
Hey Jola, Thanks for letting me know. I have removed those additional files from move_zeroes branch. Now you can review my code. |
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.
Well done, teammate!
-
The test suite is great, I would suggest adding more specific descriptions for some tests to make them even clearer.
-
The function is well implemented as well. However, I'd like to have a conversation about the return value to make sure we're on the same page about the expected behaviour.
-
It also looks like the function docstring could use an additional doctest, as the checklist specifies that we should have 3 or more passing doctests.
-
Lastly, I think the assertion error message needs an update for clarity.
I understood your points and implemented them in my files. You can see those modifications, and let me know if I should alter anything else.
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.
Hey, I've seen your code. Good job Mudassara. You did a great job. Going to merge it
Name: Review solution of move_zeroes
About: A template PR for code review of move_zeroes with a checklist
A function that moves all the zeros in a given integer array to the end, while keeping the relative order of the non-zero elements unchanged. The operation must be performed in-place, without using additional space for a copy of the array.
Behavior
Input:
An integer array
(nums)
, which can contain:Output:
A modified array where:
Files
/tests/test_file_name.py
Unit Tests
Function Docstring
Raises:
The Function
Strategy
Do's
Don'ts
Implementation
when it's too restricting.
print
statements anywhere