prob: https://leetcode.com/problems/sliding-window-median/
from sample tc :
window median
[1 3 -1] -3 5 3 6 7 1
why is the median here 1 and not 3
prob: https://leetcode.com/problems/sliding-window-median/
from sample tc :
window median
[1 3 -1] -3 5 3 6 7 1
why is the median here 1 and not 3
I think we arrange the data in ascending order and then choose the middle element right?
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.