摘要:
问题描述: A happy number is a number defined by the following process: starting with any positive integer, replace the number by the sum of the squares of 阅读全文
摘要:
问题描述: A Hamming number is a positive integer of the form 2i3j5k, for some non-negative integers i, j, and k. Write a function that computes the nth sm 阅读全文
摘要:
问题描述: Consider the following expansion: Given a string, return the expansion of that string. Input will consist of only lowercase letters and numbers 阅读全文
摘要:
问题描述: In this kata, you will make a function that converts between camelCase, snake_case, and kebab-case. You must write a function that changes to a 阅读全文
摘要:
问题描述: The rgb() method is incomplete. Complete the method so that passing in RGB decimal values will result in a hexadecimal representation being retu 阅读全文
摘要:
问题描述: In mathematics, the factorial of integer n is written as n!. It is equal to the product of n and every integer preceding it. For example: 5! = 1 阅读全文
摘要:
问题描述: A format for expressing an ordered list of integers is to use a comma separated list of either individual integers or a range of integers denote 阅读全文
摘要:
问题描述: Two Joggers Description Bob and Charles are meeting for their weekly jogging tour. They both start at the same spot called "Start" and they each 阅读全文
摘要:
问题描述: Write a program that will calculate the number of trailing zeros in a factorial of a given number. N! = 1 * 2 * 3 * ... * N Be careful 1000! has 阅读全文