최소공배수1 75] Leetcode 2413. Smallest Even Multiple Kotlin 양의 정수 n이 주어질때, 2와 n의 최소공배수를 return하는 문제 class Solution { fun smallestEvenMultiple(n: Int): Int { if(n % 2 == 0){ return n } else { return n*2 } } } 2023. 4. 10. 이전 1 다음