Комментарии:
good sol and well explained
Ответитьgreat
ОтветитьI love your teaching style
Ответитьmam why this solution not working
class Solution {
public int removeDuplicates(int[] nums) {
int j=0;
for(int i=0;i<nums.length;i++)
{
if(i<2||nums[i]!=nums[i-2])
{
nums[j++]=nums[i];
}
}
return j;
}
}
Amazing, very easy explanation, thank you
ОтветитьCrazy. Good job there.
ОтветитьWow, what a great explanation and a beautiful algorithm!
ОтветитьWell Explained dear
Ответить