Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

올바른 괄호 정답 | Hyun Seok Park #149

Open
ssseok opened this issue Mar 23, 2023 · 0 comments
Open

올바른 괄호 정답 | Hyun Seok Park #149

ssseok opened this issue Mar 23, 2023 · 0 comments
Labels
확인중 👀 제출된 정답을 확인중입니다.

Comments

@ssseok
Copy link

ssseok commented Mar 23, 2023

@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
}
@codeisneverodd codeisneverodd added the 확인중 👀 제출된 정답을 확인중입니다. label Mar 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
확인중 👀 제출된 정답을 확인중입니다.
Projects
None yet
Development

No branches or pull requests

2 participants