This question evaluates algorithmic problem-solving skills related to sorted arrays, deduplication, and order-statistics across combined datasets, measuring competence with array manipulation and distinctness reasoning.
You are given two integer arrays sorted in non-decreasing order. Each array may contain duplicates, and the same value may appear in both arrays.
Find the k-th distinct largest integer across the combined values of both arrays.
Example:
The distinct values in descending order are [6, 5, 4, 2, 1], so:
Clarify what should be returned if there are fewer than k distinct values.