摘要: 力扣90. 子集 II 1、C /** * Return an array of arrays of size *returnSize. * The sizes of the arrays are returned as *returnColumnSizes array. * Note: Both 阅读全文
posted @ 2023-07-09 10:55 菜鸟冲冲冲 阅读(24) 评论(0) 推荐(0)
摘要: 力扣78. 子集 1、C /** * Return an array of arrays of size *returnSize. * The sizes of the arrays are returned as *returnColumnSizes array. * Note: Both ret 阅读全文
posted @ 2023-07-04 21:50 菜鸟冲冲冲 阅读(19) 评论(0) 推荐(0)
摘要: 力扣146. LRU 缓存 1、C typedef struct { int key; int val; UT_hash_handle hh; } LRUCache; LRUCache* usr = NULL; int size = 0; LRUCache* lRUCacheCreate(int c 阅读全文
posted @ 2023-06-30 22:12 菜鸟冲冲冲 阅读(13) 评论(0) 推荐(0)
摘要: 力扣148. 排序链表 1、C /** * Definition for singly-linked list. * struct ListNode { * int val; * struct ListNode *next; * }; */ struct ListNode* sortList(str 阅读全文
posted @ 2023-05-12 11:00 菜鸟冲冲冲 阅读(16) 评论(0) 推荐(0)
摘要: 力扣142. 环形链表 II 1、C /** * Definition for singly-linked list. * struct ListNode { * int val; * struct ListNode *next; * }; */ struct ListNode *detectCyc 阅读全文
posted @ 2023-05-08 08:59 菜鸟冲冲冲 阅读(21) 评论(0) 推荐(0)
摘要: 力扣138. 复制带随机指针的链表 1、C /** * Definition for a Node. * struct Node { * int val; * struct Node *next; * struct Node *random; * }; */ struct hashTable{ st 阅读全文
posted @ 2023-05-04 22:53 菜鸟冲冲冲 阅读(14) 评论(0) 推荐(0)
摘要: 力扣147. 对链表进行插入排序 1、C /** * Definition for singly-linked list. * struct ListNode { * int val; * struct ListNode *next; * }; */ struct ListNode* inserti 阅读全文
posted @ 2023-04-20 14:49 菜鸟冲冲冲 阅读(27) 评论(0) 推荐(0)
摘要: 力扣141. 环形链表 1、C /** * Definition for singly-linked list. * struct ListNode { * int val; * struct ListNode *next; * }; */ bool hasCycle(struct ListNode 阅读全文
posted @ 2023-04-17 10:31 菜鸟冲冲冲 阅读(35) 评论(0) 推荐(0)
摘要: 力扣160. 相交链表 1、C /** * Definition for singly-linked list. * struct ListNode { * int val; * struct ListNode *next; * }; */ struct ListNode *getIntersect 阅读全文
posted @ 2023-04-12 09:55 菜鸟冲冲冲 阅读(19) 评论(0) 推荐(0)
摘要: 力扣21. 合并两个有序链表 1、C /** * Definition for singly-linked list. * struct ListNode { * int val; * struct ListNode *next; * }; */ struct ListNode* mergeTwoL 阅读全文
posted @ 2023-04-07 10:23 菜鸟冲冲冲 阅读(25) 评论(0) 推荐(0)