Break the problem into three parts:
Select i digits from nums1, k-i digits from nums2.: Try all valid splits.
Get max number of length m from one array.: Use monotonic stack (similar to Remove K Digits).
Merge two arrays into max number.: At each step, pick the lexicographically larger suffix. Combine: try all splits, merge each pair, keep the maximum result. The lexicographically larger suffix comparison in merging means: if > as arrays, pick from . This tie-breaking rule ensures maximum result when both arrays have the same leading digit.