Practice Find the Kth Largest Integer in the Array
Read the task, work through the examples, and check your approach against the constraints. Use the original LeetCode task for coding and submissions.
Find the Kth Largest Integer in the Array
Problem Statement
You are given an array of strings nums and an integer k. Each string in nums represents an integer without leading zeros. Return the string that represents the kth largest integer in nums. Note: Duplicate numbers should be counted distinctly. For example, if nums is ["1","2","2"], "2" is the first largest integer, "2" is the second-largest integer, and "1" is the third-largest integer.
Source: Find the Kth Largest Integer in the Array on LeetCode. Use the original task for its coding environment and submissions.
Examples
# Example 1
nums = ["3","6","7","10"], k = 4
"3"
# Example 2
nums = ["2","21","12","1"], k = 3
"2"
# Example 3
nums = ["0","0"], k = 2
"0"
Constraints
Related LeetCode Problems
Practice more problems similar to Find the Kth Largest Integer in the Array.
Review your practice with PhantomCodeAI
After trying the problem yourself, use the app to discuss your approach, complexity, and edge cases.