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