← Salesforce questions

Largest Perimeter Triangle

Filed under Salesforce

Given an integer array of side lengths, find the maximum perimeter of a triangle with a non-zero area that can be formed using three of these lengths. If no such triangle can be formed, return 0.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Salesforce questions

Collected from public candidate posts and coding forums. Updated Nov 2026.