https://programmers.co.kr/learn/courses/30/lessons/12973
function solution(s) {
let stack = [s[0]];
for(let i = 1; i < s.length; i++) {
if(stack[stack.length - 1] === s[i]) {
stack.pop();
} else {
stack.push(s[i]);
}
}
return stack.length === 0 ? 1 : 0;
}
stack 익숙해지고 있는거 같다 꺄아아 🤍