Merge pull request #1407 from Pa1sathvik/master

Update RomanToInteger.java
This commit is contained in:
Stepfen Shawn 2020-08-11 17:51:56 +08:00 committed by GitHub
commit 0c75460ca6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -29,6 +29,7 @@ public class RomanToInteger {
*/ */
public static int romanToInt(String A) { public static int romanToInt(String A) {
A = A.toUpperCase();
char prev = ' '; char prev = ' ';
int sum = 0; int sum = 0;