Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kx0101/valid-parentheses
https://github.com/kx0101/valid-parentheses
Last synced: 4 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/kx0101/valid-parentheses
- Owner: kx0101
- Created: 2022-03-21T20:01:17.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2022-03-21T20:02:28.000Z (almost 3 years ago)
- Last Synced: 2024-11-14T08:42:19.430Z (2 months ago)
- Language: Java
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# LeetCode - Valid Parentheses
## Runtime: 3 ms, faster than 53.11% of Java online submissions for Valid Parentheses.
## Memory Usage: 42.2 MB, less than 38.21% of Java online submissions for Valid Parentheses.We want to use a stack. When we come across an opening parentheses, we want to push it onto the stack. When we come across a closing parentheses, we want to check to make sure it matches the most recent opening parentheses, which will be on the top of the stack