Recent content by bretta
-
B
Algorithm question - totally lost
THANK YOU...THANK YOU...THANK YOU Does this make sense? Input: sequence "s" indexed from 1 to n; number of elements in the sequence "n" Output: First occurrence of the largest element in the sequence find_largest_element(s,n) { large = s_1 \\...- bretta
- Post #3
- Forum: Engineering and Comp Sci Homework Help
-
B
Algorithm question - totally lost
Homework Statement Write an algorithm that returns the index of the first occurrence of the largest element in the sequence s[SIZE="1"]1,...,s[SIZE="1"]n. Example: If the sequence is 6.2 7.9 4.2 8.9 the algorithm returns the value 4. I am new here...I...- bretta
- Thread
- Algorithm Lost
- Replies: 3
- Forum: Engineering and Comp Sci Homework Help