powered by
insert(perm, i, j)
insert(c(1,2,3,4,5),5,2) insert(c(1,2,3,4,5),2,5)
Run the code above in your browser using DataLab