numbers, each the decimal form of a non-negative integer with no leading zeros. The numbers can be very long, up to 100 digits.
Return the string holding the k-th largest number (k = 1 is the largest). Repeated numbers count separately: in ["7", "7", "2"] the second largest is "7".numbers=["905", "88", "1200", "77"], k=2 → '905'
In decreasing order: 1200, 905, 88, 77, so the second is "905". Comparing as text fails here: "88" > "1200" alphabetically.
numbers=["5", "5", "3"], k=2 → '5'
Equal numbers count separately: the first and second largest are both 5s.
numbers=["0"], k=1 → '0'
numbers[i] consists of digits onlynumbers=["905", "88", "1200", "77"], k=2
'905'
Run checks the first 3 tests in your browser. Submit checks all 114 tests on the server, hidden ones included.