Binary Search Vs Ternary Search

Правка en1, от 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:)

Теги #binary search, ternary search, #sorting, searching

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский omggg 2020-04-21 17:27:48 302 Initial revision (published)