0
Guys need help here
I was trying to modify an interpolation search for easy understanding. Below the embedded code. In line 13 of the code we have highend==lowend. Will this condition ever become true or on what condition highend==lowend. In line 32. Line 32 will return -2 if and only iff all the conditions between line 8 to 31 is false... Am i right. https://code.sololearn.com/cEd5bPq65K54/?ref=app
1 Réponse
+ 2
1) yes, line 13 become true if array .length =1
2)No ,while loop can't ended if array have a searching value. -2 will returned at the end while loop , and it will mean that item not found