SarthakKeshari / CPP-Questions-and-Solutions

This repository aims to solve and create new problems from different spheres of coding. A path to help students to get access to solutions and discuss their doubts.
MIT License
45 stars 132 forks source link

Reverse print a doubly linked list #320

Closed KAUSHIK-DEKA closed 3 years ago

KAUSHIK-DEKA commented 3 years ago

Issued I have worked upon: #299

Enter your question -

Given a doubly-linked list of positive integers. The task is to print the given doubly linked list data in reverse order.

Constraints Number of nodes [0, 5000]. -5000 <= Node.val <= 5000

Enter link to the question(if question belongs to any online platform) - https://www.geeksforgeeks.org/print-doubly-linked-list-in-reverse-order/

Tags for the question(eg - Array, Basic, Stack, etc.) - LinkedList, traversal, pointers


image

image

Checklist:

Eg - If your code follow the below guidelines. Kindly change [] to [x]

All the conditions should be fulfilled for considering your code for merging -

SarthakKeshari commented 3 years ago

@KAUSHIK-DEKA, Kindly fill the checklist

KAUSHIK-DEKA commented 3 years ago

@KAUSHIK-DEKA, Kindly fill the checklist

Done

SarthakKeshari commented 3 years ago

@KAUSHIK-DEKA, Gentle advice - Kindly ask the issue to be assigned to you as per the contributing guidelines. Refer CONTRIBUTING.md for more details.

KAUSHIK-DEKA commented 3 years ago

@KAUSHIK-DEKA, Kindly comment your code well.

Done