Leetcode 20. Valid Parentheses

Input: s = "()"
Output: true
Input: s = "()[]{}"
Output: true
Input: s = "(]"
Output: false
Input: s = "([)]"
Output: false
Input: s = "{[]}"
Output: true

--

--

--

CS new grad, 6 years experience related to supply chain management. Located in Bay area

Love podcasts or audiobooks? Learn on the go with our new app.

How to view the error log in cPanel

Circuit Breaking

What is Authorization (with examples)

Program to print square and rectangular Pattern

Open-source CMS developed in early versions of PHP

How I learned CSS by creating a frog with HTML & CSS only

Painless Spring boot tutorial with Maven Kotlin & MongoDB

How to call AWS S3 Glacier REST APIs from Postman

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Gary Chiang

Gary Chiang

CS new grad, 6 years experience related to supply chain management. Located in Bay area

More from Medium

Knight Probability in Chessboard Solution | LeetCode-688: Medium | JavaScript Implementation

Minimum Operations to Reduce X to Zero — LeetCode

The 6 most common causes of runtime errors and how to fix them

Must-Do Coding Questions