Medium
Partitioning Into Minimum Number Of Deci-Binary Numbers — Python
Full explanation · Time O(n) · Space O(1)
# Time: O(n)
# Space: O(1)
class Solution(object):
def minPartitions(self, n):
"""
:type n: str
:rtype: int
"""
return int(max(n))