← ALL NOTES
String

1689. Partitioning Into Minimum Number Of Deci-Binary Numbers

A "deci-binary" number has only digits 0 and 1. Given a decimal string n, find the minimum count of deci-binary numbers summing to it. The answer is simply the largest digit in n.

Loading…