You are viewing a single comment's thread. Return to all comments →
I had a similar solution in PHP:
<?php function miniMaxSum($arr) { $sum = sum($arr); print ($sum - max($arr)).' '.($sum - min($arr)); }
Seems like cookies are disabled on this browser, please enable them to open this website
Mini-Max Sum
You are viewing a single comment's thread. Return to all comments →
I had a similar solution in PHP: