Computer Science, asked by lakshdev621, 7 months ago

Write an algorithm for finding maximum in list of ‘n’ numbers and compute its space complexity

Answers

Answered by IFerg
2

Answer:

Python program to find largest

number in a list

Explanation:

# list of numbers

list1 = [10, 20, 4, 45, 99]

# sorting the list

list1.sort()

# printing the last element

print("Largest element is:", list1[-1])

Similar questions