摘要: #define MAX(a,b) ((a) > (b) ? (a) :(b)) #define MIN(a,b) ((a) < (b) ? (a) :(b)) int computeArea(int A, int B, int C, int D, int E, int F, int G, int H 阅读全文
posted @ 2020-12-28 20:44 温暖了寂寞 阅读(89) 评论(0) 推荐(0) 编辑
摘要: int countNodes(struct TreeNode* root){ return (root)?countNodes(root->left)+countNodes(root->right)+1 :0; } 阅读全文
posted @ 2020-12-28 17:06 温暖了寂寞 阅读(77) 评论(0) 推荐(0) 编辑
摘要: int* majorityElement(int* nums, int numsSize, int* returnSize){ int* res =(int*)calloc(2,sizeof(int)); *returnSize=0; if (nums == NULL || numsSize == 阅读全文
posted @ 2020-12-28 16:28 温暖了寂寞 阅读(66) 评论(0) 推荐(0) 编辑