snippets 0.1.0
Loading...
Searching...
No Matches
prefix_suffix.hpp File Reference
#include <concepts>
#include <vector>
#include <algorithm>
#include <numeric>
Include dependency graph for prefix_suffix.hpp:

Go to the source code of this file.

Namespaces

namespace  hsc_snippets
 

Functions

template<std::integral T>
static std::vector< T > hsc_snippets::getPrefixMax (const std::vector< T > &v)
 Computes the prefix maximums of a given vector.
 
template<std::integral T>
static std::vector< T > hsc_snippets::getSuffixMax (const std::vector< T > &v)
 Computes the suffix maximums of a given vector.
 
template<std::integral T>
static std::vector< T > hsc_snippets::getPrefixMin (const std::vector< T > &v)
 Computes the prefix minimums of a given vector.
 
template<std::integral T>
static std::vector< T > hsc_snippets::getSuffixMin (const std::vector< T > &v)
 Computes the suffix minimums of a given vector.
 
template<std::integral T>
static std::vector< T > hsc_snippets::getPrefixSum (const std::vector< T > &v)
 Computes the prefix sums of a given vector.
 
template<std::integral T>
static std::vector< T > hsc_snippets::getSuffixSum (const std::vector< T > &v)
 Computes the suffix sums of a given vector.