---
title: "Discussion on \"Reverse Linked List\" | Hashnode"
description: "Discussion on \"Reverse Linked List\". The trick to this problem...\nyou need a runner node, a previous node, and nextTemp node.\nFirst initialize your prev node and runner node.\n//given ListNode head , reverse the linked list\n\nListNode prev = null;\nListNode run = head;\nNow we want to itera..."
url: "https://hashnode.com/posts/reverse-linked-list/635ab89a220aa0e4d25943ff"
---

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

Discussion

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

The trick to this problem... you need a runner node, a previous node, and nextTemp node. First initialize your prev node and runner node. //given ListNode head , reverse the linked list ListNode prev = null; ListNode run = head; Now we want to itera...

Oct 27, 2022 · 1 min read · simonpyjavaplus.hashnode.dev  
Read the article

-   [#leetcode](https://hashnode.com/tag/leetcode)
-   [#linkedlists](https://hashnode.com/tag/linkedlists)

## Written by

[Simon Kuang](https://hashnode.com/@simonpyjavaplus)

@simonpyjavaplus

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
