diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-01-21 09:51:35 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-01-21 09:51:35 +0100 |
commit | 8b611d8d569cba9da2ab27d3de069c66e1cff882 (patch) | |
tree | e6e86e0c24a6ff9d5a3c5fdda3b906d9c2670bd2 | |
parent | m + add hybrid interpolation search (diff) | |
download | algorithms-and-data-structures-8b611d8d569cba9da2ab27d3de069c66e1cff882.tar.gz algorithms-and-data-structures-8b611d8d569cba9da2ab27d3de069c66e1cff882.tar.bz2 algorithms-and-data-structures-8b611d8d569cba9da2ab27d3de069c66e1cff882.tar.xz |
m
Signed-off-by: Mattias Andrée <maandree@operamail.com>
-rw-r--r-- | src/algorithms/searching/HybridBinarySearch.java | 2 | ||||
-rw-r--r-- | src/algorithms/searching/HybridInterpolationSearch.java | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/algorithms/searching/HybridBinarySearch.java b/src/algorithms/searching/HybridBinarySearch.java index 6590313..2063ca9 100644 --- a/src/algorithms/searching/HybridBinarySearch.java +++ b/src/algorithms/searching/HybridBinarySearch.java @@ -169,7 +169,7 @@ public class HybridBinarySearch if (i == n) break; - if (£(equal array[i] item)) + if (£(equal "array[i]" item)) return i; i++; diff --git a/src/algorithms/searching/HybridInterpolationSearch.java b/src/algorithms/searching/HybridInterpolationSearch.java index 888c028..b6669f0 100644 --- a/src/algorithms/searching/HybridInterpolationSearch.java +++ b/src/algorithms/searching/HybridInterpolationSearch.java @@ -128,7 +128,7 @@ public class HybridInterpolationSearch if (i == n) break; - if (£(equal array[i] item)) + if (£(equal "array[i]" item)) return i; i++; |