Exercises
We will resolve a few array exercises from LeetCode using the concepts we learned in this chapter.
Valid Parentheses
The first exercise we will resolve is the 20. Valid Parentheses problem available at
An input string is valid if: The problem also provides three hints, which contain the logic we need to implement to resolve this problem: