Reorder List: Java Solution with Slow & Fast Pointers

Reorder List ✅ Runtime: 2ms 🚀 Took me 2 hours to crack this. But now? I'll never forget it. That's the difference between copying a solution and actually understanding one. My approach : 1.Find middle using slow & fast pointers 2. Reverse the second half 3. Merge both halves together To be frank — drawing it on paper first made me even more confused 😅 Watching those pointers move on paper made zero sense initially.😭 But slowly... it started coming together. Arrow by arrow. Node by node. Until the whole picture clicked. That moment of clarity after confusion? That's the real learning. Funny thing — this is marked Medium but once the logic clicks it feels Easy. That's what consistent practice does. Problems shrink. Drop a 🔥 if you also write diagrams before you code. #DSA #LeetCode #Java #LinkedList

  • text

To view or add a comment, sign in

Explore content categories