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:
You can repeat a symbol max 3 times:
If you are to repeat some symbol 4th time, use it as a negative value preceding a higher symbol:
Except for negative values, roman numbers start at the highest symbol and end at the lowest:
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.