[Codility] Lesson7(Stacks and Queues) Nesting
Nesting
문제
- Determine whether a given string of parentheses (single type) is properly nested.
- 효율적인 알고리즘 작성
문제 풀이
- Stack 사용
- Brackets 문제와 동일하다
CODE
결과
- 시간복잡도 O(N)
- Task Score 100%
- Correctness 100%
- Performance 100%
- https://app.codility.com/demo/results/training97QNWE-ARS/