2040. Kth Smallest Product of Two Sorted Arrays
2040. Kth Smallest Product of Two Sorted Arrays
Description
Given two sorted 0-indexed integer arrays nums1
and nums2
as well as an integer k
, return the k^th
(1-based ) smallest product of nums1[i] * nums2[j]
where 0 <= i < nums1.length
and 0 <= j < nums2.length
.