448. 找到所有数组中消失的数字https://leetcode-cn.com/problems/find-all-numbers-disappeared-in-an-array/https://leetcode-cn.com/problems/find-all-numbers-disappeared-in-an-array/
代码:哈希表的简单运用int* findDisappearedNumbers(int* nums, int numsSize, int* returnSize){ int *ans=(int *)malloc(sizeof(int)*numsSize); int num[100001]; memset(num,0,sizeof(num)); for(int i=0;i欢迎分享,转载请注明来源:内存溢出
评论列表(0条)