Implement a parenthesis checker that determines if a string containing '(', ')', '{', '}', '[' and ']' is valid. A string is valid if brackets are closed in the correct order and by the same type.
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.