+ 1

[CHALLENGE] Calculation between min and max of an array of number

Input a list of numbers separated by “,” with an operator at the end. Ouput the answer Example: Input: 10,50,30,20,2,+ Output: 2+50=52

5th May 2018, 7:32 AM
Charlie Lee
Charlie Lee - avatar
2 odpowiedzi
+ 2
https://code.sololearn.com/cqE9kDg8wK0a/?ref=app god datatables are cheesy as hell haha
5th May 2018, 8:49 AM
hinanawi
hinanawi - avatar
+ 2
In C++, std::minmax_element can help you.
5th May 2018, 8:18 AM
Timon Paßlick