|
|
back to boardShow all messages Hide all messagespls help.Can any one give the output for the above test cases and explain why is it like that? pls help.Can any one give the output for the above test cases and explain why is it like that? n = 5 k =4 1 2 3 4 5 1 round : 1 2 3 5 4 2 round : 1 2 5 4 3 3 round : 1 5 4 3 2 4 round : 5 4 3 2 1 6 round : 5 4 3 1 2 answer 5 4 3 1 2 n = 6 k = 2 1 2 3 4 5 6 1 round : 1 3 4 5 6 2 2 round : 1 3 5 6 2 4 3 round : 1 3 5 2 4 6 4 round : 1 3 5 2 6 4 5 round : 3 5 2 6 4 1 6 round : 3 2 6 4 1 5 answer 3 2 6 4 1 5 n = 5 k =4 1 2 3 4 5 1 round : 1 2 3 5 4 2 round : 1 2 5 4 3 3 round : 1 5 4 3 2 4 round : 5 4 3 2 1 6 round : 5 4 3 1 2 answer 5 4 3 1 2 n = 6 k = 2 1 2 3 4 5 6 1 round : 1 3 4 5 6 2 2 round : 1 3 5 6 2 4 3 round : 1 3 5 2 4 6 4 round : 1 3 5 2 6 4 5 round : 3 5 2 6 4 1 6 round : 3 2 6 4 1 5 answer 3 2 6 4 1 5 What's that sh!t? n = 5, k = 4 4 3 5 2 1 n = 6, k = 2 2 4 6 3 1 5 |
|
|