Bartleby Related Questions 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.
expand button
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
Check Mark