c++ - Stream of Integers arriving at specified interval need to look sorted -


interview question: there stream of integers arrives @ specified intervals (say every 20 sec). container of stl use store them integers sorted? reply map/set when there no duplicate or multimap/multiset when there duplicate. better answer if exists?

use multiset if want preserve duplicates. if don't want preserve duplicates, use set.


Comments

Popular posts from this blog

html - How can i make an element from a bottom stacking context stays in front of another higher stacking context? -

python - TypeError: start must be a integer -

sql - MySQL Custom calculate views -