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

[Week1] 박서윤: 차이를 최대로, 부분수열의 합, 마인크래프트, 퇴사, 소수찾기 #5

Merged
merged 5 commits into from
May 21, 2022

Conversation

seoyoon528
Copy link
Collaborator

📒 Issue Number

linked issue #1


💎 문제 해결

차이를 최대로: ⭕️
부분수열의 합: 🔺 
마인크래프트: ⭕️
퇴사: 🔺 
소수찾기: ⭕️

🔥 특이사항/질문

코틀린으로 알고리즘을 처음 풀어보다보니 문법을 잘 몰라 훠어얼씬 더 오래걸렸네요
열심히 공부해야겠습니당🥲

Copy link
Member

@gongdongho12 gongdongho12 left a comment

Choose a reason for hiding this comment

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

강동호 코드리뷰 완료

import kotlin.math.sqrt

class Solution {
var visited = BooleanArray(7, {false})
Copy link
Member

Choose a reason for hiding this comment

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

BooleanArray 기본값이 false라 초기값 안써도 될거에요

var ans:Int = 0

fun main() {
val (n, s) = readln().split(" ").map{it.toInt()}
Copy link
Member

Choose a reason for hiding this comment

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

.split(" ").map{it.toInt()}
코드 자주쓰는데 확장함수로 만들면 좀 편하게 볼 수 있었을거같아요

@ashwon12 ashwon12 merged commit edf274c into main May 21, 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.

3 participants