leetcodeSolution to some Leetcode problems written in C++ |
git clone git://git.dimitrijedobrota.com/leetcode.git |
Log | Files | Refs | README | LICENSE |
1689.cpp (120B)
0 class Solution { 1 public: 2 int minPartitions(const string &n) { return *max_element(n.begin(), n.end()) & 0xF; } 3 };