Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

README.md

  • Completed at: 2023-01-18T05:57:57.975Z

  • Completed languages: ruby

  • Tags: Fundamentals, Mathematics

  • Rank: 8 kyu

Description

Introduction

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

Task

Given a year, return the century it is in.

Examples

1705 --> 18
1900 --> 19
1601 --> 17
2000 --> 20
In SQL, you will be given a table `years` with a column `yr` for the year. Return a table with a column `century`.

Note: this kata uses strict construction as shown in the description and the examples, you can read more about it here