Available question text
Select a subset of at least three numbers from nums whose largest element is strictly less than the sum of the other chosen elements (polygon inequality) and maximize the subset sum; return that maximum perimeter or -1 if no valid polygon exists. This is typically solved by sorting and using a greedy strategy to discard overly large sides until the condition holds.
Related questions
Continue with questions that share topics or the same question type.
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
No company association
Leetcode 2971. Find Polygon With the Largest Perimeter
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source