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
移动零
Move Zeroes
双指针
2025/10/16
思路:往后堆,碰到一个非0的数就与第一个0交换
评价:完全正确,秒了。这道题某种程度上也可以认为是双指针
Back to top