Nesting

문제

  • Determine whether a given string of parentheses (single type) is properly nested.
  • 효율적인 알고리즘 작성

문제 풀이

  • Stack 사용
  • Brackets 문제와 동일하다

CODE

결과