You are given an array of strings nums (representing non-negative integers) and integer k. Return the kth largest integer in nums (as a string). Compare by numeric value.

Input: nums=["3","6","7","10"], k=4 → Output: "3"Input: nums=["2","21","12","1"], k=3 → Output: "2"

Use a min-heap of size k (comparing by numeric string length then lexicographically). The top element is the kth largest.

import java.util.*; class Solution { public String kthLargestNumber(String[] nums, int k) { PriorityQueue<String> minHeap = new PriorityQueue<>((a, b) -> a.length() != b.length() ? a.length() - b.length() : a.compareTo(b)); for (String n : nums) { minHeap.offer(n); if (minHeap.size() > k) minHeap.poll(); } return minHeap.peek(); } }