摘要: int* inorderTraversal(struct TreeNode* root, int* returnSize) { *returnSize = 0; int* res = malloc(sizeof(int) * 501); struct TreeNode** stk = malloc( 阅读全文
posted @ 2020-12-14 15:25 温暖了寂寞 阅读(91) 评论(0) 推荐(0) 编辑
摘要: void recursion(char * s,int slen,char** arr,int* returnSize,char* temp,int tlen,int cnt,int start,int len){ if(cnt==4){ if(tlen==len+4){ arr[(*returnS 阅读全文
posted @ 2020-12-14 12:13 温暖了寂寞 阅读(89) 评论(0) 推荐(0) 编辑
摘要: struct ListNode* reverseBetween(struct ListNode* head, int m, int n){ if (m == n) return head; struct ListNode* root = (struct ListNode*)calloc(sizeof 阅读全文
posted @ 2020-12-14 00:57 温暖了寂寞 阅读(67) 评论(0) 推荐(0) 编辑