2. Valid Parentheses
Given a string s containing only bracket characters, determine whether the brackets are valid.
उदाहरण 1:
इनपुट: s = "()" आउटपुट: true
उदाहरण 2:
इनपुट: s = "([)]" आउटपुट: false
सीमाएँ:
1 <= s.length <= 10^4
Given a string s containing only bracket characters, determine whether the brackets are valid.
इनपुट: s = "()" आउटपुट: true
इनपुट: s = "([)]" आउटपुट: false
1 <= s.length <= 10^4