Vishal1003 / Algorithms

🎓 Important Algorithms and their implementations
MIT License
33 stars 99 forks source link

Added TernarySearch #125

Closed abumaz closed 4 years ago

abumaz commented 4 years ago

I have added the code to implement Ternary search in C. It takes input as the number of integers to be present in the array. It then inserts numbers in the array using a random function. It then chooses an element at random and searches for it using the TernS function.