Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Median in a stream #386

Open
Harman1010 opened this issue Oct 18, 2024 · 0 comments
Open

Median in a stream #386

Harman1010 opened this issue Oct 18, 2024 · 0 comments

Comments

@Harman1010
Copy link

Given that integers are read from a data stream. Our task is to find the median of the elements read so far.
For example :
[2,3,4] - median is 3.
[2,3] - median is floor((2+3)/2) = 2. (for odd number of elements)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant