Add as 1st line in BinSearch: if(low > height)return -1; // Return 'not found' code
J
Joe794
@Joe794
Posts
-
return value -
return value1st line should be: if(low == height)return -1; // Return "Not Found"
Add as 1st line in BinSearch: if(low > height)return -1; // Return 'not found' code
1st line should be: if(low == height)return -1; // Return "Not Found"