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:)