Skip to content

Solve : 038 문제 해결 #231

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

Merged
merged 1 commit into from
Jul 6, 2022
Merged

Solve : 038 문제 해결 #231

merged 1 commit into from
Jul 6, 2022

Conversation

subincdev
Copy link
Collaborator

  1. 첫 풀이에서 중복을 없애는데 Set을 사용하려고 어렵게 다가감.
  2. Set을 이용한 방식은 0.145초, 반면 교안 정답 코드는 0.054초로 차이가 많이났음.
  3. 38번 문제 답안에서 trim()을 해주지 않으면 사용자가 뒤에 공백을 입력했을 때, NaN이 발생하기 때문에 trim()을 추가해줌.

@jsk3342
Copy link
Owner

jsk3342 commented Jul 5, 2022

저는 Set으로 풀었는데 풀이 시간 체크는 생각 못했네요 고생하셨습니다. 머지 부탁 드립니다.

@subincdev subincdev merged commit 7dc0c81 into jsk3342:main Jul 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants