And the third one is even worse:
Based on 2, find the largest number, the second largest number, and their positions in a list of positive numbers. Assume now that the end_of_list tag is "-1".
Given the following data:
10 30 10 20 40 -1,
the results are:
The largest number is 40 at position 5
The second largest number is 30 at position 2.
__________________
Darum still, füg' ich mich, wie Gott es will. Nun, so will ich wacker streiten, und sollt' ich den Tod erleiden, stirbt ein braver Reitersmann.
|