What is the main advantage of using ternary search over binary search?
A. It works on unsorted arrays.
B. It uses less memory.
C. It is easier to implement.
D. It divides the array into three parts, potentially reducing the search time.
Answer: Option D
Join The Discussion