daily pastebin goal
33%
SHARE
TWEET

Untitled

a guest Jan 12th, 2018 51 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. lolol(l, f){
  2.   n = l.size()
  3.   buckets = array(n)
  4.   r = []
  5.   foreach (e in l){
  6.     buckets[ floor(f(e) * n) ].add(e)
  7.   }
  8.   foreach (b in buckets){
  9.     x = insertion_sort(b)
  10.     r.append(x)
  11.   }
  12.  return r
  13. }
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