• + 1 comment

    Hi everybody, With n =10 and k = 1, i obtain 2 3 4 5 6 7 8 9 10 9 but the expected output is 2 1 4 3 6 5 8 7 10 9

    Does somebody could explain why my output is not considered as a good answer ?

    Thanks