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.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
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.