Challenge: Reverse Parenthesis

Let’s learn to reverse parentheses.

Problem

Find how many reversals are needed to convert an unbalanced expression to a balanced one.

Level up your interview prep. Join Educative to access 70+ hands-on prep courses.