Algorithm for printing reversing a array from mid element and inserting nodes between two nodes .
For example
-> 11 -> 10 -> 9 -> 8 -> 7 -> 6 -> 5 -> 4 -> 3 -> 2 -> 1 -> null
should be converted to
->11 -> 1 -> 10 -> 2 -> 9 -> 3 -> 8 -> 4 -> 7 -> 5 -> 6->null
No comments:
Post a Comment