+ 2
How to guess b/w which number does the cube root lies.[NOT FROM CODING]
If we had a number Ex-33 and we want to find its cube root. So is there any method by which we can guess that the cube root of this number lies b/w which two numbers. Specially for bigger numbers like 57363. Ex : 23 cube root lie b/w 2 and 3 as 2^3 <23 <3^3
3 Answers
+ 4
VIJAY GUNWANT all you have to do is search for a number whose cube is exactly equal to the target number( 33 in this case) if the search fails and if you have implemented binary search properly then you will be left with 2 numbers(the upper bound and lower bound pointers) whose cube is just greater and just smaller than target value.
+ 3
You can easily achive it by performing a binary search.
+ 3
Arsenic can you please explain