1985. Find the Kth Largest Integer in the Array
---\n\nHope it is simple to understand.\n\n---\n\n\nvar kthLargestNumber = function (nums, k) {\n    return nums\n        .map((n) =>\n            n.padStart(\n
---\n\nHope it is simple to understand.\n\n---\n\n```\nvar kthLargestNumber = function (nums, k) {\n    return nums\n        .map((n) =>\n            n.padStart(\n                nums.reduce(\n                    (maxLen, s) => Math.max(maxLen, s.length),\n                    0\n                ),\n                "0"\n            )\n        )\n        .sort()\n        [nums.length - k]\n        .replace(/^0*/, "") || "0"\n};\n```\n\n---\n\n```\nvar kthLargestNumber = function (nums, k) {\n    return nums\n        .sort( (a, b) => (b.length - a.length)  ||  b.localeCompare(a) )\n        [k-1];\n};\n```\n\n---\n
['JavaScript']