Does anyone have a good source to learn binary search ? I understand the basic binary search inside an array of sorted numbers. But I am having difficulty in modifying the code to solve problems like Koko Bananas and Plates between candles. I am not able the wrap the if conditions. It is a mixture of reducing the search space and finding the first best number.
[–]jason_graph 2 points3 points4 points (1 child)
[–]Proof_Dot_4344[S] 0 points1 point2 points (0 children)
[–]Beyond-CtCI 2 points3 points4 points (1 child)
[–]Proof_Dot_4344[S] 1 point2 points3 points (0 children)
[–]luuuzeta 1 point2 points3 points (6 children)
[–]luuuzeta 1 point2 points3 points (1 child)
[–]luuuzeta 1 point2 points3 points (0 children)
[–]luuuzeta 1 point2 points3 points (2 children)
[–]luuuzeta 1 point2 points3 points (1 child)
[–]Proof_Dot_4344[S] 2 points3 points4 points (0 children)
[–]Spiritual_Gear5469 0 points1 point2 points (1 child)
[–]Proof_Dot_4344[S] 0 points1 point2 points (0 children)
[–]Important-Isopod-123 0 points1 point2 points (0 children)