Harshita-Kanal / Data-Structures-and-algorithms

This repository would be a documentation of my journey towards learning Data structures and algorithms. Please :star: this repo if you liked the effort :smile:
23 stars 128 forks source link

Implemented Binary Search from Scratch in C #46

Closed swapnil-satpathy closed 4 years ago

swapnil-satpathy commented 4 years ago

Implemented the binary Search Algorithm in C along with some more functionalities of C++ STL

1) Binary_search -> Returns the index if the element is present else -1; 2) Lower_Bound-> Implemented lower_bound of C++ STL 3) Upper_Bound-> Implemented upper_bound of C++ STL 4) Ceil -> Finding the ceil of the given element. 5) Floor -> Finding the floor of the given element