Roman numerals are represented by seven different symbols: I, V, X, L, C, D and M.
I
V
X
L
C
D
M
Symbol ValueI 1V 5X 10L 50C 100D 500M…
Given an array of integers nums and an integer target, return indices of the two numbers such that they add up to target.
nums
target
You may assume that each input would have exactly one solution, and you may not use the same element twice.