Largest and smallest median over length-k subsequences

0
Remix

Given an array and an integer k, consider every subsequence of length k and its median. Return the largest and the smallest of those medians.

AmazonOnline assessmentLast asked Jul 2025
No answer yet. Write the first one; the best answer gets endorsed.