brackets1 [Codility] Brackets (JavaScript) https://app.codility.com/programmers/lessons/7-stacks_and_queues/brackets/ Brackets coding task - Learn to Code - CodilityDetermine whether a given string of parentheses (multiple types) is properly nested.app.codility.com 문제:주어진 중첩괄호 문자열이 쌍을 이루고 있다면 1, 아니면 0 반환한다. 문자열이 비어있어도 1 반환한다.내 풀이:function solution(S) { if (S.length === 0) return 1; const stack = []; const arr = [...S]; fo.. 2025. 6. 14. 이전 1 다음