摘要: int* divingBoard(int shorter, int longer, int k, int* returnSize){ int val=longer-shorter,i; *returnSize=0; int* arr=(int*)calloc(k+1,sizeof(int)); if 阅读全文
posted @ 2020-11-19 12:19 温暖了寂寞 阅读(85) 评论(0) 推荐(0)
摘要: bool divisorGame(int N){ return (N%2)?false :true; } 阅读全文
posted @ 2020-11-19 10:54 温暖了寂寞 阅读(134) 评论(1) 推荐(0)
摘要: void duplicateZeros(int* arr, int arrSize){ int* ans = (int*)calloc(arrSize+1,sizeof(int)); int i,pst=0; for(i=0; i<arrSize && pst<arrSize; i++){ ans[ 阅读全文
posted @ 2020-11-19 09:55 温暖了寂寞 阅读(66) 评论(0) 推荐(0)