Advertisement
What_Ever

Untitled

Dec 30th, 2015
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. len = length(A)
  2. for i = 0 to length(B)- 1; i++:
  3. j = i + len - 1
  4. A[j+1] = B[i]
  5. while A[j+1] < A[j] and j >= 0:
  6. swap A[j+1] and A[j]
  7. j = j-1
  8. end while
  9.  
  10. end for
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement