|
template<std::totally_ordered T> |
int | hsc_snippets::numOfGreaterElements (const std::vector< T > &v, T value) |
|
template<std::integral T> |
bool | hsc_snippets::containsInRange (const std::vector< T > &vec, T start, T end) |
|
template<typename T , std::integral I = int> |
std::optional< I > | hsc_snippets::deferred_binary_search (I low, I high, const T &value, auto &&func) |
|
template<typename T , std::integral I = int> |
I | hsc_snippets::deferred_upper_bound (I low, I high, const T &value, auto &&func, auto &&comp) |
|
template<typename T , std::integral I = int> |
I | hsc_snippets::deferred_upper_bound (I low, I high, const T &value, auto &&func) |
|
template<typename T , std::integral I = int> |
I | hsc_snippets::deferred_lower_bound (I low, I high, const T &value, auto &&func, auto &&comp) |
|
template<typename T , std::integral I = int> |
I | hsc_snippets::deferred_lower_bound (I low, I high, const T &value, auto &&func) |
|
template<std::integral T> |
void | hsc_snippets::sortThree (T &a, T &b, T &c) |
|
static std::tuple< std::function< int(int)>, int > | hsc_snippets::create_compression_mapper (const std::vector< int > &nums) |
|