- 脑筋急转弯
function minPartitions(n: string): number {
let maxCase: string = '0';
for (const ch of n) {
if (maxCase < ch) {
maxCase = ch;
}
}
return +maxCase;
};
function minPartitions(n: string): number {
let maxCase: string = '0';
for (const ch of n) {
if (maxCase < ch) {
maxCase = ch;
}
}
return +maxCase;
};