---
title: "Discussion on \"LL 6 - Reverse Linked List\" | Hashnode"
description: "Discussion on \"LL 6 - Reverse Linked List\". Problem\nGiven the head of a singly linked list, reverse the list, and return the reversed list. (link)\nExample 1:\n\nInput: head = [1,2,3,4,5]\nOutput: [5,4,3,2,1]\n\nExample 2:\n\nInput: head = [1,2]\nOutput: [2,1]\n\nExample 3:\nInput: head = []\nOutput:\n\nSolu..."
url: "https://hashnode.com/posts/ll-6-reverse-linked-list/66a67339b12ce5b86fb4cac4"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [LL 6 - Reverse Linked List](https://chetan77.hashnode.dev/ll-6-reverse-linked-list?utm_source=hashnode&utm_medium=feed)

Problem Given the head of a singly linked list, reverse the list, and return the reversed list. (link) Example 1: Input: head = \[1,2,3,4,5\] Output: \[5,4,3,2,1\] Example 2: Input: head = \[1,2\] Output: \[2,1\] Example 3: Input: head = \[\] Output: Solu...

Jul 28, 2024 · 2 min read · chetan77.hashnode.dev  
Updated Aug 2, 2024  
Read the article

-   [#singly-linked-list](https://hashnode.com/tag/singly-linked-list)
-   [#linked-list](https://hashnode.com/tag/linked-list)
-   [#reverse-linked-list](https://hashnode.com/tag/reverse-linked-list)
-   [#iterative](https://hashnode.com/tag/iterative)
-   [#recursive](https://hashnode.com/tag/recursive)
-   [#leetcode](https://hashnode.com/tag/leetcode)

## Written by

[Chetan Datta](https://hashnode.com/@chetan77)

@chetan77 · Hyderabad, India

  
[View profile](https://hashnode.com/@chetan77)

Software Engineer

I share my learnings here. Thanks for reading.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
