Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- len = length(A)
- for i = 0 to length(B)- 1; i++:
- j = i + len - 1
- A[j+1] = B[i]
- while A[j+1] < A[j] and j >= 0:
- swap A[j+1] and A[j]
- j = j-1
- end while
- end for
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement