diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-01-21 17:39:48 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-01-21 17:39:48 +0100 |
commit | ed0d1e196c74539efb2e0d4794d29f652c2345ed (patch) | |
tree | 7ba5b05019b60c85e878bb594cbd68b3bd70faaa /src | |
parent | m doc (diff) | |
download | algorithms-and-data-structures-ed0d1e196c74539efb2e0d4794d29f652c2345ed.tar.gz algorithms-and-data-structures-ed0d1e196c74539efb2e0d4794d29f652c2345ed.tar.bz2 algorithms-and-data-structures-ed0d1e196c74539efb2e0d4794d29f652c2345ed.tar.xz |
which elem is found does not matter
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r-- | src/algorithms/searching/MultibinarySearch.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/algorithms/searching/MultibinarySearch.java b/src/algorithms/searching/MultibinarySearch.java index c1bf400..0486af0 100644 --- a/src/algorithms/searching/MultibinarySearch.java +++ b/src/algorithms/searching/MultibinarySearch.java @@ -150,7 +150,7 @@ public class MultibinarySearch */ public static £(fun "long[][]" indexOf "${T}[] items, ${Tarray} array, SortOrder order, SearchMode mode, int start, int end") { - if (mode != SearchMode.FIND_ANY) + if (mode == SearchMode.FIND_FIRST_AND_LAST) throw new Error("Mode not implemented"); /* TODO */ BinarySearch.SearchMode mode_ = |