-
Notifications
You must be signed in to change notification settings - Fork 20.2k
Add binary tree implementation with test #725
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
Add binary tree implementation with test #725
Conversation
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.
@RicardoGuevara OK, thanks for your contribution :)
@yanglbme Why was this merged to the development? There is a signature for the author in the code which we decided not to have and is mentioned on README. It has improper coding standards such as
Please make sure that you are reviewing the PR before merging. I will be reverting a few PRs which were merged incorrectly on the Developement branch. We need to keep this branch as clean as possible. |
Hi @varunu28 , I think there is no problem adding a signature to the code because it conforms to the Java coding specification. And you can just make some changes to improve the code. |
The problem arises when someone modifies an existing code and adds another signature on top of the existing signature making the file more verbose. And coming to coding standards, I am still not sure why it was overlooked and how the changes got approved. Complete code file has uneven distribution of braces, improper spaces and hacky in-line comments spread throughout the code. |
@varunu28 ╮(╯-╰)╭ All right, it's up to you now. |
My Fault, I didn't review the code carefully. So sorry... @varunu28 |
@yanglbme I am not sure about what idea did you got from this conversation but my only intention is that we have clean and tested code in the repository. Members of the repo have already opened issues about code being buggy. The code in binary search on master was also pointed to me by a user through email. My only request is to have the code tested on your local before approving the changes. We plan to build a test pipeline for having automated cases in future but till then we have to be extra careful about the quality of code we are adding to the repo. |
@varunu28 OK, I got it. |
Binary tree implemented for general type of comparable data