Ask Question
30 May, 21:13

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. 31 May, 00:58
    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?
Find 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 and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers