Intern — Senior
Checking the correctness of nested brackets in a string
livecode
Task condition
In the given string, there can be three types of brackets: round (), curly {} and square []. It is necessary to determine whether they are correctly placed: each opening bracket must be closed by the same closing bracket and in the correct order.
input := "asdasd (asdasd) asd{}asdasd[]"