摘要:
int findMin(struct TreeNode *root,int data) { if(!root) return -1; if(root->val > data) return root->val; int left = findMin(root->left,data); int rig 阅读全文
posted @ 2020-09-06 16:59
温暖了寂寞
阅读(113)
评论(0)
推荐(0)
摘要:
bool func(int x){ int temp = x; while(temp){ if(temp % 10 && x % (temp % 10) == 0) temp /= 10; else return false; } return true; } int* selfDividingNu 阅读全文
posted @ 2020-09-06 15:20
温暖了寂寞
阅读(134)
评论(0)
推荐(0)
摘要:
int* findErrorNums(int* nums, int numsSize, int* returnSize){ int* arr = (int*)malloc(2*sizeof(int)); int* hash = (int*)calloc(numsSize,sizeof(int)); 阅读全文
posted @ 2020-09-06 14:36
温暖了寂寞
阅读(119)
评论(0)
推荐(0)
摘要:
int** shiftGrid(int** grid, int gridSize, int* gridColSize, int k, int* returnSize, int** returnColumnSizes){ int** arr = (int**)calloc(gridSize,sizeo 阅读全文
posted @ 2020-09-06 13:49
温暖了寂寞
阅读(171)
评论(0)
推荐(0)
摘要:
char * shortestCompletingWord(char * licensePlate, char ** words, int wordsSize){ char* s = (char *)calloc(strlen(licensePlate),sizeof(char)); int i,j 阅读全文
posted @ 2020-09-06 11:03
温暖了寂寞
阅读(106)
评论(0)
推荐(0)
摘要:
int* shortestToChar(char * S, char C, int* returnSize){ int strLength = strlen(S);//字符串长度 int *arr=(int*)malloc(sizeof(int)*strLength); int prev = -st 阅读全文
posted @ 2020-09-06 09:30
温暖了寂寞
阅读(193)
评论(0)
推荐(0)

浙公网安备 33010602011771号