Home > OS >  How to optimize this algorithm for repeatedly finding and updating the minimum of an array?
How to optimize this algorithm for repeatedly finding and updating the minimum of an array?

Time:03-06

Input description

The first line of my input contains two numbers:

  • Related