Skip to content

1689-partitioning-into-minimum-number-of-deci-binary-numbers

DevGod
DevGod
Elf Vtuber
class Solution {
public:
int minPartitions(string n) {
return *max_element(n.begin(), n.end()) - '0';
}
};