Function ADS::longestBalancedSubsequence

Function Documentation

inline std::size_t ADS::longestBalancedSubsequence(std::string_view s, char open = '(', char close = ')')

the length of a longest subsequence of s that is a balanced string of the parentheses open and close

Pre:

open != close