摘要: 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 阅读全文
posted @ 2021-09-28 12:45 无极至上 阅读(66) 评论(0) 推荐(0) 编辑
摘要: LeetCode:反转链表 /** * Definition for singly-linked list. * struct ListNode { * int val; * struct ListNode *next; * }; */ struct ListNode* reverseList(st 阅读全文
posted @ 2021-09-28 12:35 无极至上 阅读(27) 评论(0) 推荐(0) 编辑