Removed unneeded conditional.
This commit is contained in:
parent
1feed10d53
commit
a7c4cfa36c
@ -53,9 +53,6 @@ public class InterpolationSearch {
|
|||||||
this.divisions++;
|
this.divisions++;
|
||||||
} else {
|
} else {
|
||||||
probe = high;
|
probe = high;
|
||||||
if (array[probe] != key) {
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Checks if it passed the element due to it not being in list. */
|
/* Checks if it passed the element due to it not being in list. */
|
||||||
|
Loading…
Reference in New Issue
Block a user