Algorithm for max integer in an array of integers
Posted
by gagneet
on Stack Overflow
See other posts from Stack Overflow
or by gagneet
Published on 2010-04-22T11:42:52Z
Indexed on
2010/04/22
11:53 UTC
Read the original article
Hit count: 390
Explain which algorithm you would use to implement a function that takes an array of integers and returns the maximum integer in the collection, assuming that the length of the array is less than 1000. Would you use Bubble Sort or Merge Sort and Why?
Also, what happens to the above algorithm choice, if the array length is greater than 1000?
© Stack Overflow or respective owner