We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
This question can easily be solved by sorting the sticks array but when you are likely to only examine the top few elements in the array, I prefer to use a priority queue for faster run time.
Maximum Perimeter Triangle
You are viewing a single comment's thread. Return to all comments →
This question can easily be solved by sorting the sticks array but when you are likely to only examine the top few elements in the array, I prefer to use a priority queue for faster run time.