Removed unneeded conditional.

This commit is contained in:
Jonathan Turner 2024-03-22 21:58:25 -04:00
parent 1feed10d53
commit a7c4cfa36c

View File

@ -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. */