修改目录结构,优化CMakeLists

This commit is contained in:
2024-09-16 08:12:23 +08:00
parent a1127e008f
commit 1e9de7c9c2
27 changed files with 6 additions and 26 deletions
+23
View File
@@ -0,0 +1,23 @@
#include <ListNode.h>
#include <stdio.h>
struct ListNode *getIntersectionNode(struct ListNode *headA, struct ListNode *headB)
{
if (headA == NULL || headB == NULL)
return NULL;
struct ListNode *pA = headA, *pB = headB;
while (pA != pB)
{
pA = pA == NULL ? headB : pA->next;
pB = pB == NULL ? headA : pB->next;
}
return pA;
}
int main()
{
return 0;
}