Java O(n) solution to see if all parentheses in a string have a corresponding pair in the correct order. Beats 99% of submissions. 1ms
-
Updated
Oct 24, 2021 - Java
Java O(n) solution to see if all parentheses in a string have a corresponding pair in the correct order. Beats 99% of submissions. 1ms
To associate your repository with the valid-parenthesis topic, visit your repo's landing page and select "manage topics."