프로그래밍22 [CodeWars] javascript - 6kyu - Sum of Digits / Digital Root 문제풀이 Title Sum of Digits / Digital Root Description In this kata, you must create a digital root function. A digital root is the recursive sum of all the digits in a number. Given n, take the sum of the digits of n. If that value has more than one digit, continue reducing in this way until a single-digit number is produced. This is only applicable to the natural numbers. Here's how it works: digital_.. 2020. 4. 12. [CodeWars] javascript - 5kyu - Math Issue 문제 풀이 Title Math Issue Description Oh no, our Math object was "accidently" reset. Can you re-implement some of those functions? We can assure, that only non-negative numbers are passed as arguments. So you don't have to consider things like undefined, null, NaN, negative numbers, strings and so on. Here is a list of functions, we need: Math.round() Math.ceil() Math.floor() How Can I Solved 문제 요구사항.. 2020. 4. 7. 이전 1 ··· 3 4 5 6 다음