摘要:
int numDecodings(char * s){ int f0 = 0, f1=1, f2, i, len = strlen(s); for (i = len - 1; i >= 0; i--){ if (s[i] == '0') f2 = 0; else if (s[i] == '1' || 阅读全文
posted @ 2020-12-13 23:07
温暖了寂寞
阅读(82)
评论(0)
推荐(0)
摘要:
int* grayCode(int n, int* returnSize){ int cnt=pow(2,n); *returnSize=cnt; int* arr=(int*)calloc(cnt,sizeof(int)); int i, j, temp; int hash[10000]={0}; 阅读全文
posted @ 2020-12-13 20:22
温暖了寂寞
阅读(70)
评论(0)
推荐(0)
摘要:
struct ListNode* partition(struct ListNode* head, int x){ struct ListNode* left=(struct ListNode*)calloc(sizeof(struct ListNode),1); struct ListNode* 阅读全文
posted @ 2020-12-13 17:45
温暖了寂寞
阅读(92)
评论(0)
推荐(0)
摘要:
struct ListNode* deleteDuplicates(struct ListNode* head){ int cnt=0; struct ListNode* root=(struct ListNode*)calloc(sizeof(struct ListNode),1); struct 阅读全文
posted @ 2020-12-13 17:20
温暖了寂寞
阅读(61)
评论(0)
推荐(0)
摘要:
bool search(int* nums, int numsSize, int target){ if(numsSize==0) return false; int i; if(nums[0]==target) return true; else if(nums[0]>target){ for(i 阅读全文
posted @ 2020-12-13 12:11
温暖了寂寞
阅读(73)
评论(0)
推荐(0)

浙公网安备 33010602011771号