riddhi-jain / DSAready

This is a beginner-friendly project aiming to build a problem-set on different data structures and algorithms in different programming languages.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Reverse a Linked List

riddhi-jain opened this issue · comments

Given the head of a singly linked list, reverse the list, and return the reversed list.

Input: head = [1,2,3,4,5]
Output: [5,4,3,2,1]

Let's do it

Hi there!
I am very knew to all this and I was wondering if I can have a go at this?