Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- largest = 0
- for each pair (i,j) of indices
- if the difference between t[i] and t[j] is > largest
- change largest
- find the min and the max of the array
- largest is the difference
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement