C++ || sorting
\nbool cmp(string a,string b)\n{\n    if(a.size()==b.size())\n    {\n        int i=0;\n        while(i<a.size())\n        {\n            if(a[i]!=b[i])\n       
```\nbool cmp(string a,string b)\n{\n    if(a.size()==b.size())\n    {\n        int i=0;\n        while(i<a.size())\n        {\n            if(a[i]!=b[i])\n             return a[i]>b[i];\n            i++;\n        }\n    }\n    return a.size()>b.size();\n}\nclass Solution {\npublic:\n    string kthLargestNumber(vector<string>& nums, int k) {\n        sort(nums.begin(),nums.end(),cmp);\n        return nums[k-1];\n    }\n};\n```
[]