class Solution {
public int removeElement(int[] nums, int val) {
if(nums ==null || nums.length==0)
{
return 0;
}
int l=0;
int r=nums.length-1;
while(l
双指针

class Solution {
public int removeElement(int[] nums, int val) {
if(nums ==null || nums.length==0)
{
return 0;
}
int l=0;
int r=nums.length-1;
while(l
双指针