✅C++|| Simple Sort ,try big and a+b > c|| Easy Solution
\nclass Solution {\npublic:\n    int largestPerimeter(vector<int>& nums) {\n        sort(nums.begin(),nums.end());\n        \n        for(int i=nums.size()-3;i>
```\nclass Solution {\npublic:\n    int largestPerimeter(vector<int>& nums) {\n        sort(nums.begin(),nums.end());\n        \n        for(int i=nums.size()-3;i>=0;i--){\n            if(nums[i]+nums[i+1] > nums[i+2]){\n                return nums[i]+nums[i+1]+nums[i+2];\n            }\n        }\n        return 0;\n    }\n};\n```\n**Please upvote if it was helpful for you, thank you!**
['C']