Skip to content
This repository has been archived by the owner on Apr 29, 2024. It is now read-only.

Fix bug in online median solution #22

Merged
merged 1 commit into from
Oct 29, 2019

Conversation

chellitorvic
Copy link
Contributor

@chellitorvic chellitorvic commented Oct 26, 2019

A simple example where original implementation fails is a data set of [1, 2, 3]. After 3 is inserted, the median returns 1, while it should be 2.

@bephrem1 bephrem1 merged commit 81aa1a9 into bephrem1:master Oct 29, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants