1class Solution {2 public:3 int minPartitions(string n) {4 return *max_element(n.begin(), n.end()) - '0';5 }6};
WPM •0 •0
ACC •0 •0
TIME •0