Skip to content

Commit eb75ce5

Browse files
authored
Update RomanToInteger.java
In case if lower case roman letters are supplied, we need to convert into single case(Upper case).
1 parent 5fd352f commit eb75ce5

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Conversions/RomanToInteger.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ public class RomanToInteger {
2929
*/
3030
public static int romanToInt(String A) {
3131

32+
A = A.toUpperCase();
3233
char prev = ' ';
3334

3435
int sum = 0;

0 commit comments

Comments
 (0)