Short C++17 solution
InterviewBit Problems
Max Min : Solved
evgeny-televitckiy
2020-09-18 23:03:28 UTC
#1
auto [mn,mx] = std::minmax_element(std::begin(A), std::end(A)); return *mn + *mx;