Skip to content

Commit e8da264

Browse files
authored
Merge pull request #1 from codemongkey/codemongkey-patch-1
Create 句子.md
2 parents 641ab6e + f1b2406 commit e8da264

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

2019.11.24/句子.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
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+
}

0 commit comments

Comments
 (0)