摘要:
int recursion(struct TreeNode* root, bool* flag){ if(!root) return 0; int left=recursion(root->left, flag); int right=recursion(root->right, flag); if 阅读全文
posted @ 2020-11-28 23:59
温暖了寂寞
阅读(47)
评论(0)
推荐(0)
摘要:
bool checkStraightLine(int** coordinates, int coordinatesSize, int* coordinatesColSize){ float a=0,b; int i; for(i=0; i<coordinatesSize-1; i++){ if(co 阅读全文
posted @ 2020-11-28 22:50
温暖了寂寞
阅读(94)
评论(0)
推荐(0)
摘要:
bool checkIfExist(int* arr, int arrSize){ int hash[12001] = { 0 }, i; for (i = 0; i<arrSize; i++){ if (hash[(arr[i] * 2 + 3000)] || (arr[i] % 2 == 0 & 阅读全文
posted @ 2020-11-28 20:00
温暖了寂寞
阅读(79)
评论(0)
推荐(0)
摘要:
bool arrayStringsAreEqual(char ** word1, int word1Size, char ** word2, int word2Size){ char s1[1001]={0}; char s2[1001]={0}; int i; for(i=0; i<word1Si 阅读全文
posted @ 2020-11-28 18:50
温暖了寂寞
阅读(154)
评论(0)
推荐(0)

浙公网安备 33010602011771号