LeetCode 20 - Valid Parentheses

แชร์
ฝัง
  • เผยแพร่เมื่อ 27 ต.ค. 2024

ความคิดเห็น • 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.