this problem could be solved by quadratic roots. takes o(1). By i want to solve this using binary search. But i can't implement the logic in code correctly. please help. TIA...
this problem could be solved by quadratic roots. takes o(1). By i want to solve this using binary search. But i can't implement the logic in code correctly. please help. TIA...