LEETCODE
UNLOCKED
Problems
Donate
Tools
Partitioning Into Minimum Number Of Deci-Binary Numbers
Solution
Python
Java
C++
Javascript
Copy
class Solution: def minPartitions(self, n: str) -> int: return int(max(n))
Buy the VIVO Glass Deskpad
Available on Amazon
Affiliate
Time Complexity
O(
L
)
Space Complexity
O(
1
)