1689.cpp (120B)
1 class Solution { 2 public: 3 int minPartitions(const string &n) { return *max_element(n.begin(), n.end()) & 0xF; } 4 };