Algorithms
Algorithms copied to clipboard
Implement Binary Search
Implement Binary Search in a language of your choice.
Please read the contributing guidelines in CONTRIBUTING.md
Languages claimed/implemented:
- [x] C (by @KyaBacchaHai )
- [x] Python (by @deutranium )
- [x] CPP (by @Rahul30032)
- [x] Java (by @hackbansu)
- [x] C (from scratch) (by @swapnil-satpathy)
- [x] Go (by @codelixir)
- [x] Dart (by @royzaa)
Hey I can try implementing this in CPP, if that's okay can you assign this to me?
I'm adding this in Java.
@Rahul30032 @hackbansu sure
Created #45 with code in Java. Cheers :)
after this issue was assigned to me, I found out a basic implementation of binarysearch in cpp was pushed so i implemented another problem statement mentioned in readme file in binaryseach folder i.e implementing binary search for a sorted array with duplicate elements. my output gives first and last index as well as its count.
@Rahul30032 yeah it was an issue at my end, I didn't check it. Thanks for implementing a different version and good job with the code!!
Can you please assign it to me. I along with binary search will also implement lower_bound,upper_bound from scratch which are features of STL and also add functionalities for finding ceiling and floor
@swapnil-satpathy sure and I'm guessing you're talking about an implementation in C.
But you should name it as binarySearch_scratch.c and don't remove the code present right now as it talks about the basic flow without going into intricacies.
I'll assign this to you
Hey, can I implement this in golang?
@codelixir sure go ahead!
Hi, can I implement this in dart?
@royzaa yes you can go ahead, I'll assign it to you