Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2019
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. given n=2
  2. given array [1,2,3,4,5,6,7,8,9,10]
  3. your program should output [2,1,4,3,6,5,8,7,10,9]
  4.  
  5. given n=3
  6. given array [1,2,3,4,5,6,7,8,9,10]
  7. your program should output [3,2,1,6,5,4,9,8,7,10]
  8.  
  9. given n=4
  10. given array [1,2,3,4,5,6,7,8,9,10]
  11. your program should output [4,3,2,1,8,7,6,5,10,9]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement