Function ADS::runLengthEncode

Function Documentation

inline std::vector<std::pair<std::size_t, char>> ADS::runLengthEncode(std::string_view s)

the maximal runs of s as ( length , symbol )

Post:

runLengthDecode( result ) == s (an audit)