Brackets

문제

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

문제 풀이

  • Stack 사용
  • ASCII CODE 사용 () 40/41, [] 91/93, {} 123/125

CODE

결과

CODE V2