faster || easier || beginner friendly || using lamda function for comparison
class Solution {\npublic:\n   \n    string kthLargestNumber(vector& nums, int k) {\n\n         sort(nums.begin(), nums.end(),&\n         {\n              if (s1
class Solution {\npublic:\n   \n    string kthLargestNumber(vector<string>& nums, int k) {\n\n         sort(nums.begin(), nums.end(),[&](string s1,string s2)\n         {\n              if (s1.size() == s2.size()) {\n                 return s1 < s2;\n              }\n              else {\n                return s1.size() < s2.size();\n              }   \n         });\n          int max = nums.size() - k;\n        return nums[max];\n    }\n};
[]