Skip to content

Commit b6e7837

Browse files
authored
Create 句子.md
1 parent ad7e580 commit b6e7837

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

2019.11.24/句子.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
```
2+
class Solution {
3+
public int removeElement(int[] nums, int val) {
4+
int j=0;
5+
for(int i=0;i<nums.length;++i)
6+
{
7+
if(nums[i]!=val)
8+
{
9+
nums[j]=nums[i];
10+
++j;
11+
12+
}
13+
}
14+
return j;
15+
}
16+
}
17+
```

0 commit comments

Comments
 (0)