Skip to content

venth/confitura-2015-superdigit

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Superdigit

We define superdigit of an integer x using the following rules:

  • If x has only 1 digit, then its superdigit is x.
  • Otherwise, the superdigit of x is equal to the superdigit of the digit-sum of x. Here, digit-sum of a number is defined as the sum of its digits.

For example, super digit of 98741 will be calculated as:

super-digit(98741) = super-digit(9+8+7+4+1)
                  = super-digit(29)
                  = super-digit(2+9)
                  = super-digit(11)
                  = super-digit(1+1)
                  = super-digit(2)
                  = 2.

You can check contest bye-laws here.

Check out our Confitura 2015 site here

We are hiring! Visit our career site.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%