This commit is contained in:
2026-03-01 17:22:23 +08:00
parent 4180df8390
commit 3c8405abf2
+12
View File
@@ -0,0 +1,12 @@
package A
func minPartitions(n string) int {
res := 0
for _, v := range n {
t := int(v - '0')
if res < t {
res = t
}
}
return res
}