/* Input to this function is a string containing multiple groups of nested parentheses. Your goal is to separate those group into separate strings and return the vector of those. Separate groups are balanced (each open brace is properly closed) and not nested within each other Ignore any spaces in the input string. >>> separate_paren_groups("( ) (( )) (( )( ))") {"()", "(())", "(()())"} */ #include #include #include using namespace std; vector separate_paren_groups(string paren_string){ vector all_parens; string current_paren; int level=0; char chr; int i; for (i=0;i bool issame(vector a,vectorb){ if (a.size()!=b.size()) return false; for (int i=0;i