One Door interview question

Given two Roman numerals as strings, write a method to multiply them

Interview Answer

Anonymous

14 Jan 2016

You need to set up a group of integers and have them correlate with the associated characters. i.e.: a dictionary of 3 characters I V X. I = 1 V= 5 X= 10 For roman numeral IV = 5-1. Plug this logic into a method that can receive the roman numeral string and return an integer or a float.

1