Delete the middle node of a linked list | Leetcode | Medium | Java

Published: 22 August 2023
on channel: AlgorithmHQ
357
19

This question can be done using multiple approaches. Two of them are:
1) Iterating and finding the length and then finding the index of the middle node by dividing it by 2
2) Using slow and fast pointers.
Second approach is better as it causes pointers to iterate over the list only once.

Link to the problem: https://leetcode.com/problems/delete-...


Watch video Delete the middle node of a linked list | Leetcode | Medium | Java online, duration hours minute second in high quality that is uploaded to the channel AlgorithmHQ 22 August 2023. Share the link to the video on social media so that your subscribers and friends will also watch this video. This video clip has been viewed 357 times and liked it 19 visitors.