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?
Good question. I didn't notice that in the test cases.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
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.
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?
Good question. I didn't notice that in the test cases.