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.

icon
Related questions
Question
for question 1, please use java language for coding
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.
Transcribed Image Text: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.
Expert Solution
steps

Step by step

Solved in 5 steps with 1 images

Blurred answer