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 without registration, duration hours minute second in high quality. This video was added by user AlgorithmHQ 22 August 2023, don't forget to share it with your friends and acquaintances, it has been viewed on our site 357 once and liked it 19 people.