Binary Search Vs Ternary Search

Revision en1, by omggg, 2020-04-21 17:27:48

I know the B.S and basic implementation of Ternary Search. But i don't know where to apply T.S ? When B.S fails... how do think that T.S would work?

For Eg: Problem : 439D - Devu and his Brother , Submission(T.S) : 6814294

Any help is Much Appreciated.

Thanks:)

Tags #binary search, ternary search, #sorting, searching

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English omggg 2020-04-21 17:27:48 302 Initial revision (published)