Skip to content

An implementation of the streaming-median algorithm in c++

License

Notifications You must be signed in to change notification settings

TeddyEngel/streaming-median

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

streaming-median

An implementation of the streaming-median algorithm in c++

Expects as first stdin argument a number n that specifies how many numbers will be given, then n integer numbers.

Will print out the running median after each input.

Example input:

3

1

2

3

Output:

1.0

1.5

2.0

About

An implementation of the streaming-median algorithm in c++

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages