Skip to content
This repository has been archived by the owner on Oct 14, 2021. It is now read-only.

Reverse a doubly linked list (Python) #283

Closed
nazuk27 opened this issue Oct 25, 2020 · 6 comments
Closed

Reverse a doubly linked list (Python) #283

nazuk27 opened this issue Oct 25, 2020 · 6 comments

Comments

@nazuk27
Copy link
Contributor

nazuk27 commented Oct 25, 2020

Given a pointer to the head node of a doubly linked list, reverse the order of the nodes in the list and display the reversed Linked List.

Input Format:
The first line contains an integer 't', the number of test cases.
Each test case is of the following format:

The first line contains an integer n, the number of elements in the linked list.

The next n, lines contain an integer each denoting an element of the linked list.

Output Format:
Print the reversed doubly linked list.

Sample Input:
1
4
1
2
3
4

Sample Output:
4 3 2 1

@nazuk27
Copy link
Contributor Author

nazuk27 commented Oct 25, 2020

@aditya109 Can you please assign this to me? Thanks!

@aditya109
Copy link
Owner

Hi @nazuk27 ! Please go on ahead and raise a PR for the same, linking this issue. I am assigning this issue to you. Please consider starring the repo, if you have not already to encourage further contributions.

nazuk27 added a commit to nazuk27/git-osp-for-beginners that referenced this issue Oct 26, 2020
Signed-off-by: Nazish Khan <nazish1771@gmail.com>
nazuk27 added a commit to nazuk27/git-osp-for-beginners that referenced this issue Oct 26, 2020
Signed-off-by: Nazish Khan <nazish1771@gmail.com>
nazuk27 added a commit to nazuk27/git-osp-for-beginners that referenced this issue Oct 26, 2020
Added Reverse a doubly linked list (Python) aditya109#283
@MalEl-94
Copy link

@nazuk27 Can you please assign this to me. I'd like to attempt this in Java.

aditya109 pushed a commit that referenced this issue Oct 28, 2020
* Added Counting occurrence of each word (Python) #276

Signed-off-by: Nazish Khan <nazish1771@gmail.com>

* Added Counting occurrence of each word (Python) in proper folder

* Added Reverse a doubly linked list (Python) #283

Signed-off-by: Nazish Khan <nazish1771@gmail.com>

* Delete CountingOccurrenceOfEachWord.py

* Delete ReverseDoublyLinkedList.py

* Added Reverse a doubly linked list (Python) #283

Signed-off-by: Nazish Khan <nazish1771@gmail.com>

* Added Modified Kaprekar Numbers (Python) #281

Signed-off-by: Nazish Khan <nazish1771@gmail.com>
aditya109 pushed a commit that referenced this issue Oct 28, 2020
* Added Counting occurrence of each word (Python) #276

Signed-off-by: Nazish Khan <nazish1771@gmail.com>

* Added Counting occurrence of each word (Python) in proper folder

* Added Reverse a doubly linked list (Python) #283

Signed-off-by: Nazish Khan <nazish1771@gmail.com>

* Delete CountingOccurrenceOfEachWord.py

* Delete ReverseDoublyLinkedList.py

* Added Reverse a doubly linked list (Python) #283

Signed-off-by: Nazish Khan <nazish1771@gmail.com>
aditya109 pushed a commit that referenced this issue Oct 28, 2020
* Added Counting occurrence of each word (Python) #276

Signed-off-by: Nazish Khan <nazish1771@gmail.com>

* Added Counting occurrence of each word (Python) in proper folder

* Added Reverse a doubly linked list (Python) #283

Signed-off-by: Nazish Khan <nazish1771@gmail.com>

* Delete CountingOccurrenceOfEachWord.py

* Delete ReverseDoublyLinkedList.py

* Added Reverse a doubly linked list (Python) #283

Signed-off-by: Nazish Khan <nazish1771@gmail.com>

* Added Modified Kaprekar Numbers (Python) #281

Signed-off-by: Nazish Khan <nazish1771@gmail.com>
@hryxna
Copy link
Collaborator

hryxna commented Oct 28, 2020

I already have implemented this as well @aditya109 & @MalEl-94 in JAVA 😁.
Check out the Solution

@harshbhagwani94
Copy link
Contributor

@aditya109 can you assign this issue to me as well? I want to do this in C++.

@purva-saxena
Copy link

i would like to solve this issue!
can you please assign it to me

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

6 participants