---
title: "Discussion on \"Day 17 – Advanced Linked Lists + Trapping Rainwater\" | Hashnode"
description: "Discussion on \"Day 17 – Advanced Linked Lists + Trapping Rainwater\". Leetcode 237. Delete Node in a Linked List\nIntuition: You’re given access to the node itself, not the head. Copy data from next node, then delete the next node.\nvoid deleteNode(ListNode* node) {\n    node->val = node->next->val;\n    node->next = node-..."
url: "https://hashnode.com/posts/day-17-advanced-linked-lists-trapping-rainwater/687e871cde7536bd781f40de"
---

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

Discussion

# [Day 17 – Advanced Linked Lists + Trapping Rainwater](https://sids-dsa-journal.hashnode.dev/day-17-advanced-linked-lists-trapping-rainwater?utm_source=hashnode&utm_medium=feed)

Leetcode 237. Delete Node in a Linked List Intuition: You’re given access to the node itself, not the head. Copy data from next node, then delete the next node. void deleteNode(ListNode\* node) { node->val = node->next->val; node->next = node-...

Jul 21, 2025 · 6 min read · sids-dsa-journal.hashnode.dev  
Read the article

-   [#dsa](https://hashnode.com/tag/dsa)
-   [#cpp](https://hashnode.com/tag/cpp)

## Written by

[Siddharth Gandhi](https://hashnode.com/@SidGandhiCodes)

@SidGandhiCodes

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

Learning. Building. Blogging. Repeat.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
