|
|
back to boardwhat is the output for n=6 k=2,n=5 k=4 Posted by Madhav 13 Jun 2008 04:15 pls help.Can any one give the output for the above test cases and explain why is it like that? Re: what is the output for n=6 k=2,n=5 k=4 Posted by Elmurod 30 Oct 2008 19:11 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 Re: what is the output for n=6 k=2,n=5 k=4 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 |
|
|