美文网首页
leetcode-day3

leetcode-day3

作者: 爆炸的热水袋 | 来源:发表于2019-01-17 04:05 被阅读0次

Valid Parentheses

Boundary Condition:

consider just having left parenthese and right parenthese.

  1. Just having left parenthese: vector is not vacant at last.
  2. Just having right parenthese: vector is vacant when check for match.

相关文章

  • leetcode-day3

    Valid Parentheses Boundary Condition: consider just havin...

网友评论

      本文标题:leetcode-day3

      本文链接:https://www.haomeiwen.com/subject/ydcgrqtx.html