Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Solution {
- public:
- int removeDuplicates(vector<int>& nums) {
- nums.erase(unique(nums.begin(), nums.end()));
- return nums.size();
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement