ChallengeRocket
  • Challenges
  • Find jobs
  • Candidate Hub
  • Employers / Post a Job
  • Log in
  • Sign up now
Menu
  • Home
  • Challenges
  • Roman Numerals

This Challenge is completed

Roman Numerals

Roman Numerals
  • Completed
  • Completed

SEE LEADERBOARD

OTHER CHALLENGES

~10MIN
Mar 27, 2019 - Jan 03, 2021 03:50 UTC
SKILL PRACTICE CHALLENGE
  • Challenge outline
  • Leaderboard
Roman Numerals
  • Challenge outline
  • Leaderboard

Hello and welcome to the next live coding challenge!


Write a decoder of roman numerals, which receives roman numeral as a string and returns an integer number.


Roman symbols cheatsheet:


Symbol Value

I 1

V 5

X 10

L 50

C 100

D 500

M 1,000


You can repeat a symbol max 3 times:


II 2

III 3

CCC 300


If you are to repeat some symbol 4th time, use it as a negative value preceding a higher symbol:


IV 4

XC 90


Except for negative values, roman numbers start at the highest symbol and end at the lowest:


MCXIV 1114

MMCMXCIII 2993


You can solve this programming contest in Java, JavaScript, Python, C++ and many more languages. If you want, you can also take part in other Challenges. Below you can find some of them:


  • The Longest Name For A Prince
  • Sudoku Validator
  • Friday 13th


Have fun and good luck! :)


Did you like this challenge and would like to try your hand at some interesting big programming competitions? Check what’s all over the news in tech world in April 2019 in our article with upcoming IT Conferences, Hackathons and Online Challenges.

By using our site, you agree to challengerocket's use of cookies in accordance with our privacy policy.
ChallengeRocket
Tech talent
Challenges Blog Find jobs Candidate Hub
Companies
Business HR Blog Pricing
Challengerocket
FAQ EU Join Us Contact Us
Copyright © 2022 ChallengeRocket. All rights reserved.
Privacy Terms and Conditions Service status

Log in

Don’t have account?
Create a candidate account
or

Forgot your password?

Log in

Don’t have account?
Create an employer account

Forgot your password?

Create a candidate account

Already have an account?
Log in
or
  • At least 8 characters
  • Uppercase Latin characters
  • Lowercase Latin characters
  • At least one number or symbol

Not a candidate?  Sign up as an employer

Reset your password

Remember your password? Log in Log in for business

Create an employer account

Sign up for free.
Select the best plan to publish job ofers & challenges.

Company name introduced here will be visible on your job ads.
  • At least 8 characters
  • Uppercase Latin characters
  • Lowercase Latin characters
  • At least one number or symbol

Not an employer?  Sign up as a candidate