LeetCode
zl1016xixi
i'm fine thanks
展开
-
LeetCode02.两数相加
/** * Definition for singly-linked list. * struct ListNode { * int val; * struct ListNode *next; * }; */struct ListNode* addTwoNumbers(struct ListNode* l1, struct ListNode* l2){ char...原创 2019-11-10 20:25:44 · 125 阅读 · 0 评论 -
LeetCode01.两数之和(使用哈希表)
/** * Note: The returned array must be malloced, assume caller calls free(). */int* twoSum(int* nums, int numsSize, int target, int* returnSize){ *returnSize=2; int i,j; int *a; a=...原创 2019-11-09 10:21:39 · 342 阅读 · 0 评论 -
LeetCode21. 合并两个有序链表(c语言实现)
/** * Definition for singly-linked list. * struct ListNode { * int val; * struct ListNode *next; * }; */struct ListNode* mergeTwoLists(struct ListNode* l1, struct ListNode* l2){ s...原创 2019-11-07 20:24:45 · 194 阅读 · 0 评论