https://leetcode-cn.com/problems/remove-duplicates-from-sorted-array/submissions/
https://leetcode-cn.com/problems/remove-element/submissions/
class Solution { public: int removeDuplicates(vector& nums) { int k=0; for(int i=0;i 自己 class Solution { public: int removeDuplicates(vector& nums) { int i=0,j=0; while(i 移除元素代码 class Solution { public: int removeElement(vector& nums, int val) { sort(nums.begin(),nums.end()); int k=0; for(int i=0;i 欢迎分享,转载请注明来源:内存溢出
评论列表(0条)