1
class Solution {
2
public int minPartitions(String n) {
3
int res = 0;
4
for (int i = 0; i < n.length(); i++) {
5
res = Math.max(res, n.charAt(i) - '0');
6
}
7
return res;
8
}
9
}

0

WPM •0 •0

100%

ACC •0 •0

0s

TIME •0