Prefix Sum LeetCode 2488. Count Subarrays With Median K Solution in Java, C++, Python & More | Explanation + Code CoderIndeed July 15, 2026