DEV Community

Discussion on: Daily Challenge #296 - Years to Centuries

Collapse
 
_bkeren profile image
''

This question has conflicts.

"20000" --> "210th" (should it be 201st?)

In the question:

"The first century spans from the year 1 up to and including the year 100, The second - from the year 101 up to and including the year 200, etc. Return the century of the input year"

but toCentury(2000) -> 21st?

Collapse
 
mellen profile image
Matt Ellen

Good question. I didn't notice that in the test cases.