Hackerrank - Maximum Perimeter Triangle Solution
Given an array of stick lengths, use of them to construct a non-degenerate triangle with the maximum possible perimeter. Print the lengths of its sides as space-separated integers in non-decreasing order.
If there are several valid triangles having the maximum perimeter:
1. Choose the one with the longest maximum side.