올바른 괄호 정답 | Hyun Seok Park
Opened this issue · 0 comments
ssseok commented
@hyun Seok Park 님의 정답이에요! 👏👏👏
제출한 정답
function solution(s){
let count = 0;
for(const a of s) {
a === "(" ? count++ : count--;
if(count < 0) return false;
}
return count === 0;
}풀이 데이터
{
"probId": "12909",
"author": "Hyun Seok Park",
"lang": "JavaScript",
"createdAt": 1679579165107
}