reversing a link list in k intervals

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


  • Did you have a question?
  • dear, this is not a specific CBuilder question
    you need an algorithm and a C++ code.
    try another forum
    Mohammad Nasim
Sign In or Register to comment.

Howdy, Stranger!

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