摘要:
Sum of Digits / Digital RootIn this kata, you must create adigital rootfunction.A digital root is therecursive sum of all the digits in a number.Given... 阅读全文
posted @ 2015-07-09 15:30
ChuckLu
阅读(775)
评论(0)
推荐(0)
摘要:
Multiples of 3 and 5If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23.F... 阅读全文
posted @ 2015-07-09 14:56
ChuckLu
阅读(575)
评论(0)
推荐(0)
摘要:
A number system with moduli is defined by a vector of k moduli, [m1,m2, ···,mk].The moduli must be pairwise co-prime, which means that, for any pair of... 阅读全文
posted @ 2015-07-09 12:15
ChuckLu
阅读(325)
评论(0)
推荐(0)
摘要:
Case swappingDescription:Given a string, swap the case for each of the letters.e.g. CodEwArs --> cODeWaRSExamplesKata.Swap("") == ""Kata.Swap("CodeWar... 阅读全文
posted @ 2015-07-09 09:17
ChuckLu
阅读(305)
评论(0)
推荐(0)

浙公网安备 33010602011771号