Leetcode | 20. Valid Parentheses | Java | C#

Publicado el: 09 octubre 2020
en el canal de: CodeOnline
751
8

Leetcode | 20. Valid Parentheses | Java | C#

Given a string s containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid.

An input string is valid if:

Open brackets must be closed by the same type of brackets.
Open brackets must be closed in the correct order.


Example 1:

Input: s = "()"
Output: true
Example 2:

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

Input: s = "(]"
Output: false
Example 4:

Input: s = "([)]"
Output: false
Example 5:

Input: s = "{[]}"
Output: true


En esta página del sitio puede ver el video en línea Leetcode | 20. Valid Parentheses | Java | C# de Duración hora minuto segunda en buena calidad , que subió el usuario CodeOnline 09 octubre 2020, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 751 veces y le gustó 8 a los espectadores. Disfruta viendo!