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.
your logic is good but i feel my code at larger inputs is less complex
as mine doesnt have to traverse the whole array since its sorted decreasingly. the running time is the same O(nlogn). ur suggestions are welcome
Cookie support is required to access HackerRank
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 →
your logic is good but i feel my code at larger inputs is less complex as mine doesnt have to traverse the whole array since its sorted decreasingly. the running time is the same O(nlogn). ur suggestions are welcome