![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
LeetCode
FNR_S
这个作者很懒,什么都没留下…
展开
-
华为机试:寻找数组中A=B+2C的组合
华为牛客网机试题目原创 2022-08-13 13:56:05 · 705 阅读 · 0 评论 -
LeetCode:最长无重复子串
LeetCode:合并两个有序链表 int lengthOfLongestSubstring(char* s){ int len=0; int start=0; int end=0; char map[128]={0}; map[(int)*(s+start)]=1; while(*(s+end)!='\0') { // if(map[(int)*(s+end)]==0) // { //原创 2021-01-17 11:08:49 · 151 阅读 · 0 评论 -
LeetCode:反转链表
LeetCode:反转链表 /** * Definition for singly-linked list. * struct ListNode { * int val; * struct ListNode *next; * }; */ struct ListNode* reverseList(struct ListNode* head){ if(head==NULL || head->next==NULL) return head; st原创 2021-01-17 11:06:14 · 89 阅读 · 0 评论 -
LeetCode:合并两个有序链表
LeetCode:合并两个有序链表 /** * Definition for singly-linked list. * struct ListNode { * int val; * struct ListNode *next; * }; */ struct ListNode* mergeTwoLists(struct ListNode* l1, struct ListNode* l2){ if(l1==NULL) return l2; if(l2==NUL原创 2021-01-17 11:01:47 · 90 阅读 · 0 评论