摘要: 21. 合并两个有序链表 合并两个有序链表 当两个链表都不为空时,分别取出两个链表头部,将较小链表节点插入新的链表尾部 当至少有一个链表为空时,将不为空的链表直接插入新的链表尾部 /** * Definition for singly-linked list. * struct ListNode { 阅读全文
posted @ 2025-02-19 22:16 张又久 阅读(36) 评论(0) 推荐(0)
摘要: simpeP2P #include <stdlib.h> #include <stdio.h> #include <cuda_runtime.h> template <typename T> void check(T result, char const *const func, const cha 阅读全文
posted @ 2025-01-23 20:09 张又久 阅读(75) 评论(0) 推荐(0)
摘要: async.cu #include <stdio.h> #include <cuda_runtime.h> #include <cuda_profiler_api.h> template <typename T> void check(T result, char const *const func 阅读全文
posted @ 2025-01-22 23:26 张又久 阅读(44) 评论(0) 推荐(0)