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

Опубликовано: 09 Февраль 2026
на канале: AlgorithmHQ
518
22

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-...