Get 100 highest numbers from an infinite listA heap is the right structure in general for this, but you definitely don't want to keep the irrelevant numbers, and I am not sure how easy it would be to convert a heap to throwing away the unneeded numbers.

Theta notation on constant time. Why we use the 1?@user10326: No, no, it does not represent a constant time. It represents time that grows linearly with c. Those are different, because you need something additional to force the value of c to never change, whereas 1 never changes.

Sep20

comment

Bogarting the Data Access LayerThis seems like a good answer to me. The DBA is probably most concerned with making sure that a bad check-in doesn't wreck the database.

*Code owner* system: is it an efficient way?-1. This is a good answer only if you can really work as a team. If not, then it can easily lead to bad situations. Not everyone gets to work in the same building or the same company.