[ymir0804] WEEK 01 solutions#2017
Merged
yeonjukim164 merged 7 commits intoDaleStudy:mainfrom Nov 17, 2025
Merged
Conversation
geegong
reviewed
Nov 15, 2025
| if (idx == -1) { | ||
| continue; | ||
| } | ||
| list.remove(idx); |
Contributor
There was a problem hiding this comment.
오 list 에서 하나씩 지워나가는것도 방법이네요👍
Contributor
Author
There was a problem hiding this comment.
@geegong
제가 자료구조에는 익숙하지가 않아서.. 좀 무식한 방법을 사용한 것 같은데.. 시간복잡도상 상관이 없는지는 잘 모르겠네요 ㅠㅠ
geegong
reviewed
Nov 15, 2025
|
|
||
| class Solution { | ||
| public int[] topKFrequent(int[] nums, int k) { | ||
| Set<Integer> unique = Arrays.stream(nums).boxed().collect(Collectors.toSet()); |
Contributor
There was a problem hiding this comment.
오 boxed() 메소드는 몰랐네요ㅎㅎ
덕분에 하나 배워갑니다~ 굳이 항상 mapToInt() 요런식으로 할 필요가 없네요 😅
geegong
approved these changes
Nov 15, 2025
Contributor
There was a problem hiding this comment.
첫 주차 문제풀이 넘 고생많으셨습니다~ 👍
(+ 작성해주신 코드 마지막에 빈 한 줄씩 추가 해줘야 병합할 수 있을거같아요~)
https://github.com/DaleStudy/leetcode-study/wiki/%EB%8B%B5%EC%95%88-%EC%A0%9C%EC%B6%9C-%EA%B0%80%EC%9D%B4%EB%93%9C#3-%ED%8C%8C%EC%9D%BC%EC%9D%98-%EB%A7%88%EC%A7%80%EB%A7%89%EC%97%90-%EA%B0%9C%ED%96%89%EB%AC%B8%EC%9E%90%EB%A5%BC-%EC%B6%94%EA%B0%80
geegong
reviewed
Nov 15, 2025
contains-duplicate/ymir0916.java
Outdated
| } | ||
| return false; | ||
| } | ||
| } No newline at end of file |
Contributor
There was a problem hiding this comment.
마지막에 한줄 추가해야 merge가 될거 같아요~~
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
답안 제출 문제
작성자 체크 리스트
In Review로 설정해주세요.검토자 체크 리스트
Important
본인 답안 제출 뿐만 아니라 다른 분 PR 하나 이상을 반드시 검토를 해주셔야 합니다!