Recent content by bretta

  1. 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 \\...
  2. B

    Algorithm question - totally lost

    Homework Statement Write an algorithm that returns the index of the first occurence 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...
Back
Top