DEV Community

Discussion on: Daily Challenge #234 - Happy Birthday!

Collapse
 
craigmc08 profile image
Craig McIlwrath

Are fractional bases allowed? Or should the function return something special for impossible situations.

Many of the tests are impossible with integral bases. For example, to write 50 as 21 in base n, 2n + 1 = 50, and there is no integer solution because 50 is even.