You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found that this solution doesn't handle the "Invalid Roman Numeric Value".
Ex: If we pass IIXX, The output is 20 which is wrong since the IIXX is invalid roman number. In this case, we throw an error, rest of the code continues..
I found that this solution doesn't handle the "Invalid Roman Numeric Value".
Ex: If we pass
IIXX
, The output is20
which is wrong since theIIXX
is invalid roman number. In this case, we throw an error, rest of the code continues..Here is my
js
solution:Note
It would be helpful if you add the example test cases when you have the solution for the problem.
The text was updated successfully, but these errors were encountered: