## Invitation to Computer Science 8th Edition

The resulting data list would be: $[3/ 2 / 6 / 7 / 5 / 1 / 1 / 1 / 1 / 1]$ The number of copies is $26 .$ To cover the 0 in position $2,$ copy the 8 elements on the right. Still a 0 in the same position, another 8 copies. Copy 5 elements due to the 0 in position $5 .$ And another 5 because of another 0 again.
The resulting data list would be: $[3/ 2 / 6 / 7 / 5 / 1 / 1 / 1 / 1 / 1]$ The number of copies is $26 .$ To cover the 0 in position $2,$ copy the 8 elements on the right. Still a 0 in the same position, another 8 copies. Copy 5 elements due to the 0 in position $5 .$ And another 5 because of another 0 again.