leetcode-day3

2019-01-17  本文已影响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.
上一篇 下一篇

猜你喜欢

热点阅读