0
votes
2answers
169 views

Ternary Search just like Binary search but dividing items by 3

There is a function named "test" below. My program cannot pass the test function. This is my code for ternary search. Ternary Search is like binary search but instead of dividing all of the elements ...