Shawn’s Blog
🗂️ Collections
🖥️ Slides Gallery
🧠 Q&A Knowledge Base
💻 LeetCode Notes
🧑🍳️ Cooking Ideas
🍱 Cookbook
💬 Language Learning
🎼 Music Library
⚙️ Projects
⚛ Continual Learning Arena
📄 Papers
AdaHAT
FG-AdaHAT
AmnesiacHAT
🎓 CV
CV (English)
CV (Mandarin)
About
删除链表的倒数第N个节点
Remove Nth Node From End of List
双指针
链表
2025/10/16
思路:双指针,先提前跑n个,然后一块往后扫描,提前跑的指针到头的时候,就可以删除了。
评价:简单,秒了
Back to top