力扣
陈姝琴
这个作者很懒,什么都没留下…
展开
-
2021-01-19
------------------------------------力扣之整数反转---------------------------------------------- intreverse(longlongx){ longlongr=0; while(x){ r=r*10+x%10; x=x/10; } if(r<-pow(2,31)||r>pow(2,31)-1)return0; ...原创 2021-01-19 14:28:37 · 70 阅读 · 1 评论 -
2021-01-12
***C语言力扣两数之和*** int* twoSum(int* nums, int numsSize, int target,int* a) { *a=2; a=(int*)malloc(sizeof(int)*(*a)); for (int i = 0; i < numsSize - 1; i++) { for (int j = i+1; j < numsSize; j++) { if (nums[...原创 2021-01-12 09:20:03 · 69 阅读 · 0 评论