1class 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}
WPM •0 •0
ACC •0 •0
TIME •0