Howdy, Stranger!

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

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

how to reverse a linklist

varindervarinder Posts: 1Member
plz give me solution of reversing a linklist using structures

Comments

  • BitByBit_ThorBitByBit_Thor Posts: 2,444Member
    : plz give me solution of reversing a linklist using structures
    :

    Setting tail to head and interchanging the roles of back and next.
    For more specific explanation, post the structure of your linked lists
    Best Regards,
    Richard

    The way I see it... Well, it's all pretty blurry
  • vibin_mdcpvibin_mdcp Posts: 60Member
    : plz give me solution of reversing a linklist using structures
    :

    I assume your linklist is not a bi-directional linklist;

    Better to create a new linklist object;

    Then add nodes of your linklist into new linklist object from last to

    start.
Sign In or Register to comment.