Count subarrays with median >= k
Filed under Directi
The question
Given an array and an integer k, find the number of subarrays where the median is at least k.
No write-up yet. Related questions below have one.
Related Directi questions
Collected from public candidate posts and coding forums. Updated Nov 2026.