Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

reversing a link list in k intervals

vivek57vivek57 Member Posts: 1
i ve a single linear link list.i had to reverse it for [color=Purple][/color]k intervals.
eg:1 2 3 4 5 6 7 8 be the list and if k is 3,then answer is
[color=Green][/color]3 2 1 6 5 4 7 8

Comments

Sign In or Register to comment.