i am unbale to find the error, passing for one test case and filing for other
Unbale to find the error
@akshatkaush You cannot store those big values in long long int in C++. You first binary search with l=0, and r=10^8.
THen while multiplying each time check if the value crosses the mid value then do binary search on it.