Home
Topics
Practice
Roadmap
DSA Tracker
Code Editor
Tech Blogs
More
Sign in
Get started
Loading question...
Feedback
Valid Parentheses
Hard
00:00
0 users online
Share
Description
Solution
Submissions
Discussion
Check if parentheses string is valid.
Sample Input:
"()"
Sample Output:
true
Hints
Hint 1
Use stack to track opening brackets
Hint 2
Push opening brackets, pop on matching closing
Hint 3
Check for empty stack at end
Code Editor
Reset
Run
Save
Loading...