Valid Parentheses
Easy
Stack
Given a string containing only the characters ()[]{}, determine whether it is valid. A string is valid if every opening bracket is closed by the same type of bracket in the correct order.
Constraints
1 <= len(s) <= 10^4
Discussion
No discussions yet.
Shalyam Support
Hi! Ask us anything — we'll reply on WhatsApp or Telegram within 24 hours.