You are viewing a single comment's thread. Return to all comments →
Python 3 Solun:
def maximumPerimeterTriangle(sticks): sticks.sort() for i in range(len(sticks) - 3, -1, -1): if sticks[i] + sticks[i+1] > sticks[i+2]: return [sticks[i], sticks[i+1], sticks[i+2]] return [-1]
Seems like cookies are disabled on this browser, please enable them to open this website
Maximum Perimeter Triangle
You are viewing a single comment's thread. Return to all comments →
Python 3 Solun: