There was an error while loading. Please reload this page.
1 parent 7d24600 commit 3cd851dCopy full SHA for 3cd851d
c-cpp/15_bsearch/bsearch.hpp
@@ -10,6 +10,9 @@
10
11
enum class BsearchPolicy { FIRST, LAST, UNSPECIFIED };
12
13
+// Liam Huang: The algorithm works right with iterators that meet the ForwardIterator requirement,
14
+// but with a bad time complexity. For better performance, iterators should meet
15
+// the RandomAccessIterator requirement.
16
template <typename IterT,
17
typename ValueT = typename std::iterator_traits<IterT>::value_type,
18
typename Compare>
0 commit comments