Jerry Blog

Your world should be a lively experience, not a series of hearsays.

【One topic per day】Sum of Digits / Digital Root

前端题库,Javascript题集

Sum of Digits / Digital Root 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 ...

【One topic per day】Time Degrees

前端题库,Javascript题集

Time Degrees Note : Issues Fixed with python 2.7.6 , Use any one you like :D , ( Thanks to Time , time , time . Your task is to write a function that will return the degrees on a analog clock from...

【One topic per day】Printer Errors

前端题库,Javascript题集

Printer Errors In a factory a printer prints labels for boxes. For one kind of boxes the printer has to use colors which, for the sake of simplicity, are named with letters from a to m. The colors...

【One topic per day】Is n divisible by x and y?

前端题库,Javascript题集

Is n divisible by x and y? Create a function isDivisible(n, x, y) that checks if a number n is divisible by two numbers x AND y. All inputs are positive, non-zero digits. Example: isDivisible(3,1,3...

【One topic per day】Disemvowel Trolls

前端题库,Javascript题集

Disemvowel Trolls Trolls are attacking your comment section! A common way to deal with this situation is to remove all of the vowels from the trolls’ comments, neutralizing the threat. Your task ...

【One topic per day】Descending Order

前端题库,Javascript题集

Descending Order our task is to make a function that can take any non-negative integer as a argument and return it with its digits in descending order. Essentially, rearrange the digits to create t...

【One topic per day】Isograms

前端题库,Javascript题集

Isograms An isogram is a word that has no repeating letters, consecutive or non-consecutive. Implement a function that determines whether a string that contains only letters is an isogram. Assume ...

【One topic per day】Take a Ten Minute Walk

前端题库,Javascript题集

Take a Ten Minute Walk You live in the city of Cartesia where all roads are laid out in a perfect grid. You arrived ten minutes too early to an appointment, so you decided to take the opportunity t...

【One topic per day】Sum of odd numbers

前端题库,Javascript题集

Sum of odd numbers Given the triangle of consecutive odd numbers: 1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 ... Calculate the row su...

【One topic per day】Basic Nico variation

前端题库,Javascript题集

Basic Nico variation Write a function nico/nico() that accepts two parameters: key/$key - string consists of unique letters and digits message/$message - string to encode and encodes the message u...