![Computers and Technology](/tpl/images/cats/informatica.png)
Computers and Technology, 10.11.2019 00:31, nailah742
Write an oz function which has at its input a list of integers and returns the maximum element. for example, {max [3 ~2 0 4 5 1]} should return 5. the optimal algorithm for determining the maximum element of a list with n elements is doing n-1 comparisons. write an oz function which has at its input a list of integers and returns the first two maximum elements. for example, {max [3 ~2 0 4 5 1]} should return 5 and 4. what is the optimal number of comparisons needed? try to write an optimal version (for maximum mark).
![answer](/tpl/images/cats/otvet.png)
Answers: 1
Similar questions
![ŠŃŠµŠ“Š¼ŠµŃ](/tpl/images/cats/informatica.png)
Computers and Technology, 20.08.2019 22:30, baylabrown
Answers: 1
![ŠŃŠµŠ“Š¼ŠµŃ](/tpl/images/cats/informatica.png)
Computers and Technology, 18.09.2019 03:00, cesar2679
Answers: 3
![ŠŃŠµŠ“Š¼ŠµŃ](/tpl/images/cats/User.png)
Engineering, 05.10.2019 00:20, des9263
Answers: 2
![ŠŃŠµŠ“Š¼ŠµŃ](/tpl/images/cats/informatica.png)
Computers and Technology, 08.11.2019 05:31, lilquongohard
Answers: 2
Do you know the correct answer?
Write an oz function which has at its input a list of integers and returns the maximum element. for...
Questions in other subjects:
![Konu](/tpl/images/cats/mat.png)
![Konu](/tpl/images/cats/obshestvoznanie.png)
Social Studies, 19.08.2020 01:01
![Konu](/tpl/images/cats/en.png)
![Konu](/tpl/images/cats/himiya.png)
![Konu](/tpl/images/cats/mat.png)
![Konu](/tpl/images/cats/en.png)
![Konu](/tpl/images/cats/obshestvoznanie.png)
Social Studies, 19.08.2020 01:01
![Konu](/tpl/images/cats/mat.png)
![Konu](/tpl/images/cats/fizika.png)