Devin's Blog

Home

❯

Coding

❯

Largest Perimeter Triangle

Largest Perimeter Triangle

Mar 25, 20231 min read

  • idea

Note

The intuition is that as long as nums[i] + nums[j] > nums[k], and the nums array is sorted, then you have a triangle


References

https://leetcode.com/problems/largest-perimeter-triangle/


Graph View

Created with Quartz v4.5.0 © 2026

  • GitHub
  • Discord Community