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

Week4 #11

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Week4 #11

wants to merge 3 commits into from

Conversation

arinming
Copy link
Collaborator

@arinming arinming commented Sep 28, 2024

스크린샷 2024-09-28 오후 6 37 06 기사단원의 무기 스크린샷 2024-09-28 오후 7 14 58 동영상 재생기 스크린샷 2024-09-28 오후 7 17 22 이진변환 반복하기

@arinming arinming requested a review from chattymin September 28, 2024 10:18
@arinming arinming self-assigned this Sep 28, 2024
for (i in 1..number) {
var divisorCount = 0

for (j in 1..Math.sqrt(i.toDouble()).toInt()) {

Choose a reason for hiding this comment

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

오 Math 사용하셨군요👍👍

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

뭔가 불편한 코드,.,...

for (command in commands) {
when (command) {
"prev" -> {
currentPosition = (currentPosition - 10).coerceAtLeast(0)

Choose a reason for hiding this comment

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

코틀린에는 coerceAt 이라는 함수가 제공되네요 신기합니다 ㅋㅎㅋㅎ

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