SHARE
TWEET

Untitled

a guest Jul 22nd, 2019 48 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top