Q1. Write an algorithm that finds the smallest number in a list (an array) of n numbers Q2. Describe the type of time complexity algorithm in the question 1 has, and explain why.
Q1. Write an algorithm that finds the smallest number in a list (an array) of n numbers Q2. Describe the type of time complexity algorithm in the question 1 has, and explain why.
Related questions
Question
for question 1, please use java language for coding
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 5 steps with 1 images