class Solution {public: int removeDuplicates(int A[], int n) { // IMPORTANT: Please reset any member data you declared, as // the same Solution instance will be reused for each test case. if (n<=1) return n; int last = 1; for (int i=1; i
本文共 337 字,大约阅读时间需要 1 分钟。
class Solution {public: int removeDuplicates(int A[], int n) { // IMPORTANT: Please reset any member data you declared, as // the same Solution instance will be reused for each test case. if (n<=1) return n; int last = 1; for (int i=1; i
转载于:https://www.cnblogs.com/zhanghs/p/3404187.html