codezonediitj / pydatastructs

A python package for data structures and algorithms
https://pydatastructs.readthedocs.io/en/stable/
Other
199 stars 269 forks source link

Reverse a Doubly Linked List #484

Closed 1e9abhi1e10 closed 2 years ago

1e9abhi1e10 commented 2 years ago

Description of the problem

All we need to do is swap prev and next pointers for all nodes, change prev of the head (or start) and change the head pointer in the end.

Example of the problem

Original linked list 10 8 4 2 The reversed Linked List is 2 4 8 10

dona-samir commented 2 years ago

@abhi1e9-1e10 hi I am a GSSOC'22 participant , I would like to contribute in this issue

22chiragmodh commented 2 years ago

@abhi1e9-1e10 i want to claim for this issue.

CoderAndroid746 commented 2 years ago

Good morning sir, I really want to contribute to this issue.

gargshruti commented 2 years ago

I want to contribute for this issue.

Avik-creator commented 2 years ago

Hey there everyone, Is this issue still open. I would like to contribute to it. So I would be really glad if you could assign this to me. I am GSSOC participant and my name is Avik Mukherjee.