Skip to content

Conversation

baexxbin
Copy link
Contributor

@baexxbin baexxbin commented Oct 7, 2024

No description provided.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

friends를 배열로 선언해서 반복문으로 좋아하는 학생의 수를 구했는데
ArrayList의 contains를 쓰면 더 깔끔하군용.. 배워갑니다👍🏻

Comment on lines +33 to +37
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

map.put(arr[i], i + 1); 순서를 미리 지정해서 Map에 미리 저장해놓으면 k번째 단어의 입력순서를 바로 가져올 수 있겠군요!

수빈님 코드 참고해서 수정했더니 시간이 2배나 줄었어요 ㅎㅎ 감사합니다🤩
image

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

꺄 도움이 되었다니 기분이 좋네요!😎

@KodaHye KodaHye merged commit a4944a7 into main Oct 14, 2024
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.

4 participants