Problem
Submissions

Problem: Find the Kth Largest Integer in the Array

Statement

Given an array of strings, nums, where each string represents an integer without leading zeros, and an integer k, your task is to find and return the string representing the kth^{th} largest integer in the array.

Note: Treat duplicate integers as distinct entities. For instance, if nums =[“2”, “3”, “3”]= [\text{\lq\lq2\rq\rq, \lq\lq3\rq\rq, \lq\lq3\rq\rq]}, the first largest integer is “3”\text{\lq\lq3\rq\rq}, the second largest is also “3”\text{\lq\lq3\rq\rq}, and the third largest is “2”\text{\lq\lq2\rq\rq}.

Constraints:

  • 1<=1 <= k <=<= nums.length <=103<= 10^3

  • 1<=1 <= nums[i].length <=100<= 100

  • nums[i] consists of only digits.

  • nums[i] will not have any leading zeros.

Problem
Submissions

Problem: Find the Kth Largest Integer in the Array

Statement

Given an array of strings, nums, where each string represents an integer without leading zeros, and an integer k, your task is to find and return the string representing the kth^{th} largest integer in the array.

Note: Treat duplicate integers as distinct entities. For instance, if nums =[“2”, “3”, “3”]= [\text{\lq\lq2\rq\rq, \lq\lq3\rq\rq, \lq\lq3\rq\rq]}, the first largest integer is “3”\text{\lq\lq3\rq\rq}, the second largest is also “3”\text{\lq\lq3\rq\rq}, and the third largest is “2”\text{\lq\lq2\rq\rq}.

Constraints:

  • 1<=1 <= k <=<= nums.length <=103<= 10^3

  • 1<=1 <= nums[i].length <=100<= 100

  • nums[i] consists of only digits.

  • nums[i] will not have any leading zeros.