-
Notifications
You must be signed in to change notification settings - Fork 20.8k
Create Rotated_Binary_Search.java #3795
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
Searching in the rotated Binary search
siriak
left a comment
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.
The code looks good, could you please add some JUnit tests? (see https://github.com/TheAlgorithms/Java/tree/master/src/test/java/com/thealgorithms)
|
I don't know how to add JUnit test
…On Fri, Dec 16, 2022 at 3:15 PM Andrii Siriak ***@***.***> wrote:
***@***.**** requested changes on this pull request.
The code looks good, could you please add some JUnit tests? (see
https://github.com/TheAlgorithms/Java/tree/master/src/test/java/com/thealgorithms
)
—
Reply to this email directly, view it on GitHub
<#3795 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ASESLGTZEJ6RG3YXETUOJW3WNQ2Z3ANCNFSM6AAAAAATAELKDU>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
| return Binarysearch(nums, target, pivot+1, nums.length-1); | ||
| } | ||
|
|
||
| static int Binarysearch(int[] arr, int target, int start, int end) { |
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.
This function name should follow camel case.'B' should be small.
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.
A 's' should be capital.
You can go to the provided link and take a look of other JUnit tests code, and make one for yours too. It was very simple you will get it. |
|
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
|
Please reopen this pull request once you commit the changes requested or make improvements on the code. If this is not the case and you need some help, feel free to seek help from our Gitter or ping one of the reviewers. Thank you for your contributions! |
Searching in the rotated Binary search