DEV Community

Discussion on: Finding the Middle of a Linked List

Collapse
 
halented profile image
Hal Friday

this solution is so smart. i went about it a much more verbose way...counted the number of nodes, saved the length/2, then stepped through to the middlemost point. kind of a fun one to do