This is certainly linear, but how can you minimize the #of comparison.
Hint: think about the way we build an heap.
What Tumblr’s sale means for New York startup ecosystem
-
New York startup ecosystem will get a big boost from the $1.1 billion sale
of Tumblr to Yahoo. The exit, one of the biggest New York has scene shows
that w...
30 minutes ago
max heap ( o(1) for finding maximum) and o(n* logn for minimum)
ReplyDelete