mirror of
https://github.com/lWolvesl/leetcode.git
synced 2026-06-04 02:21:15 +08:00
routine
This commit is contained in:
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user