#466 Valid Parentheses Check

Companies:
Sberbank
Themes:
AlgorithmsStringsPractice

A string consists of the brackets [] () {}.

Determine whether the brackets are arranged correctly. The arrangement is valid when every opening bracket is closed by a bracket of the same type and in the correct order. For example:

"([]){}" - true

"(()]" - false

Question review

Mentor
Answer as you would in a real interview. I’ll ask follow-up questions, then compare your answer with the reference answer and show your accuracy as a %.
Sign in to start the dialogue The mentor keeps the context of the current question and your previous messages.
Sign in