Leetcode – Valid Parentheses
Name: Valid ParenthesesDifficulty: EasyDescription: Return true if the string opens and closes parenthesis in the correct order Example: Given “()”, return true Given “()[]{}”, return true Given “{[]}”, return true Given “(]”, return false The stack data structure is very useful. As long as the character is an opening parenthesis, i.e. ({[, we just keep […]