Ask Question
30 March, 13:11

Write an algorithm to find the maximum and minimum number from a given list of N numbers. Assume the list is not sorted

+2
Answers (1)
  1. 30 March, 16:52
    0
    MaxNumber = 0

    minNumber = INT_MAX

    for n in list:

    if (n > maxNumber):

    maxNumber = n

    elif (n < minNumber):

    minNumber = n
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “Write an algorithm to find the maximum and minimum number from a given list of N numbers. Assume the list is not sorted ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers