Valid Parentheses

Easy
LeetCode #20

Given 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

You are not logged in.