-
Notifications
You must be signed in to change notification settings - Fork 126
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
[khyo] Week 1 #676
[khyo] Week 1 #676
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
안녕하세요 파일을 다른 폴더에 생성하신 것 같아요
longest-consecutive-sequence 폴더 아래에 생성해주세요~
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
넵! 반영했습니다.
top-k-frequent-elements/higeuni.js
Outdated
|
||
var topKFrequent = function(nums, k) { | ||
const countObject = {} | ||
nums.map((num) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
결과는 비슷할 것 같은데 .map
메소드 대신에 .forEach
메소드를 사용하시는게 더 적절하지 않을까 싶어요 :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
덕분에 차이를 공부해보면서 .map
과 .forEach
의 반환값 차이가 있다는 것을 알게되었습니다 😊
감사합니다!!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
풀이가 깔끔하고 좋네요 ㅎㅎ 수고하셨습니다
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
전반적으로 깔끔한 풀이 잘 보았습니다 ㅎㅎ 고생많으셨습니다!
답안 제출 문제
체크 리스트
In Review
로 설정해주세요.