Skip to content

Commit 7bd37b3

Browse files
committed
Runtime: 3 ms (Top 63.81%) | Memory: 54.8 MB (Top 11.36%)
1 parent c898474 commit 7bd37b3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1+
// Runtime: 3 ms (Top 63.81%) | Memory: 54.8 MB (Top 11.36%)
12
class Solution {
23
public String largestOddNumber(String num) {
34
for (int i = num.length() - 1; i > -1; i--) {
45
if (num.charAt(i) % 2 == 1) return num.substring(0,i+1);
56
}
67
return "";
78
}
8-
}
9+
}

0 commit comments

Comments
 (0)