clean, readable code [C++]
Intuition\nEasy one-liner in C++\n\n# Approach\nYou don\'t need Python, when you know C++ like me\n\n# Complexity\n- Time complexity: O(-1)\n\n- Space complexit
# Intuition\nEasy one-liner in C++\n\n# Approach\nYou don\'t need Python, when you know C++ like me\n\n# Complexity\n- Time complexity: O(-1)\n\n- Space complexity: O(inf)\n\n# Code\n```\nclass Solution {public:string removeOuterParentheses(string s) {string output;int count = 0;for (auto c : s) {if (c == \')\') count--;if (count != 0) output += c;if (c == \'(\') count++;}return output;}};\n```
['C++']