文章目录 法一:经典双指针 总结: 法一:经典双指针 class Solution { public: int removeElement(vector<int>& nums, int val) { int len =