Practice / Software

Valid brackets

Easy · Coding (typed)

Given a string containing only ()[]{}, return true if every bracket is closed by the same type in the right order. "([]{})" is valid, "([)]" is not.

Create a free account to answer it and get scored on what a strong answer covers.