All Problems
3/10
Valid Parentheses
EasyGiven a string containing only the characters (, ), {, }, [, and ], determine if the input string is valid. A string is valid if open brackets are closed by the same type in the correct order. Print true or false.
Given variables
s: a string of bracket characters
4 test cases
Hit Test to see output...Loading WASM...Docs