上一页 1 ··· 18 19 20 21 22 23 24 25 26 ··· 63 下一页
摘要: int* decompressRLElist(int* nums, int numsSize, int* returnSize){ int* arr=(int*)calloc(10000,sizeof(int)); int i,j,pst=0; for(i=0; i<numsSize; i+=2){ 阅读全文
posted @ 2020-11-23 11:20 温暖了寂寞 阅读(54) 评论(0) 推荐(0) 编辑
摘要: char * freqAlphabets(char * s){ char arr[2000]={0}; int i,pst=1001, len=strlen(s); for(i=len-1; i>=0;){ if(s[i] == '#'){ arr[--pst]=(s[i-2]-'0')*10 + 阅读全文
posted @ 2020-11-23 10:50 温暖了寂寞 阅读(69) 评论(0) 推荐(0) 编辑
摘要: int* fraction(int* cont, int contSize, int* returnSize){ int* arr=(int*)calloc(sizeof(int),2); arr[0]=1; arr[1]=0; for (int i=contSize-1; i>=0; i--) { 阅读全文
posted @ 2020-11-23 10:06 温暖了寂寞 阅读(77) 评论(0) 推荐(0) 编辑
摘要: char * defangIPaddr(char * address){ int len = strlen(address); char* s = (char*)calloc(sizeof(char), len*2); char* buffer; buffer = strtok(address, " 阅读全文
posted @ 2020-11-23 00:46 温暖了寂寞 阅读(57) 评论(0) 推荐(0) 编辑
摘要: int* decrypt(int* code, int codeSize, int k, int* returnSize){ *returnSize = codeSize; int* arr = (int*)calloc(sizeof(int), codeSize); int i, left, ri 阅读全文
posted @ 2020-11-22 20:17 温暖了寂寞 阅读(115) 评论(0) 推荐(0) 编辑
摘要: int findShortestSubArray(int* nums, int numsSize){ int i,j,max=0,pst=0,minLen=50001; int hash[50000]={0}, startPst[50000], endPst[50000]={0}; memset(s 阅读全文
posted @ 2020-11-22 18:47 温暖了寂寞 阅读(87) 评论(0) 推荐(0) 编辑
摘要: int minDeletionSize(char ** A, int ASize){ int i,j,cnt=0; for(i=0; i<strlen(A[0]); i++){ for(j=0; j<ASize-1; j++){ if(A[j][i] > A[j+1][i]){ cnt++; bre 阅读全文
posted @ 2020-11-22 17:21 温暖了寂寞 阅读(54) 评论(0) 推荐(0) 编辑
摘要: void deleteNode(struct ListNode* node) { node->val=node->next->val; node->next=node->next->next; } 阅读全文
posted @ 2020-11-22 16:27 温暖了寂寞 阅读(89) 评论(0) 推荐(0) 编辑
摘要: typedef struct { int hash[1000001]; } MyHashMap; /** Initialize your data structure here. */ MyHashMap* myHashMapCreate() { MyHashMap* obj=(MyHashMap* 阅读全文
posted @ 2020-11-22 12:06 温暖了寂寞 阅读(124) 评论(0) 推荐(0) 编辑
摘要: typedef struct { int hash[1000001]; } MyHashSet; /** Initialize your data structure here. */ MyHashSet* myHashSetCreate() { MyHashSet* obj=(MyHashSet* 阅读全文
posted @ 2020-11-22 11:56 温暖了寂寞 阅读(84) 评论(0) 推荐(0) 编辑
上一页 1 ··· 18 19 20 21 22 23 24 25 26 ··· 63 下一页