LeetCode 20 - Valid Parentheses

Поделиться
HTML-код
  • Опубликовано: 6 фев 2025

Комментарии • 2

  • @AbhisarMohapatra
    @AbhisarMohapatra 5 лет назад

    Nice one friend. Looking forward to more :)

  • @syntaxcake4545
    @syntaxcake4545 3 года назад

    Hello,
    I am really sorry I don't find any make sense following code. why you need tannery operator.
    I found that stack.push(); doesn't work.
    else {
    top===brackets[curr] ? stack.pop():stack.push();
    }
    please let me know the reason. Thanks.