Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save Jibbscript/75f9192f824b07547db797707f022b57 to your computer and use it in GitHub Desktop.

Select an option

Save Jibbscript/75f9192f824b07547db797707f022b57 to your computer and use it in GitHub Desktop.
Partitioning Into Minimum Number Of Deci-Binary Numbers
class Solution:
def minPartitions(self, n: str) -> int:
for i in range(9, -1, -1):
if str(i) in n:
return i
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment