Compare commits

..

2 Commits

Author SHA1 Message Date
Jonathan Turner
1feed10d53 Merge remote-tracking branch 'origin/dev' into dev
# Conflicts:
#	src/Assignments/A3/InterpolationSearch.java
2024-03-21 12:56:01 -04:00
Jonathan Turner
d9735ec2bd Fixed InterpolationSearch getting caught on missing element. 2024-03-21 12:55:46 -04:00

View File

@ -57,6 +57,8 @@ public class InterpolationSearch {
break; break;
} }
} }
/* Checks if it passed the element due to it not being in list. */
if (array[high] < key || array[low] > key) { if (array[high] < key || array[low] > key) {
break; break;
} }