algorithms.tutorialhorizon.com
Valid Brackets – Part 2 | Stack Method | Algorithms
Objective: Given a string containing just the characters '(', '), determine if the input string is valid. Example: ()()(()(()))() valid: true )()()( valid: false ()()) valid: false