Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2019
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. largest = 0
  2. for each pair (i,j) of indices
  3. if the difference between t[i] and t[j] is > largest
  4. change largest
  5.  
  6. find the min and the max of the array
  7. largest is the difference
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement