摘要: // 链表求和 ListNode *addTwoList(ListNode *p, ListNode *q){ ListNode *pCur = p; ListNode *qCur = q; ListNode *head = new ListNode(-1); ListNode *ret = hea 阅读全文
posted @ 2020-11-02 14:28 威威后花园 阅读(99) 评论(0) 推荐(0) 编辑
摘要: // 遍历字符串,使用set集合记录走过的字符// 字符串不含重复字符的最长子串 int longChirldStr(string s){ set<char> tmpSet; int ret = 0; int right = 0; int size = s.length(); if(size ==0 阅读全文
posted @ 2020-11-02 09:30 威威后花园 阅读(80) 评论(0) 推荐(0) 编辑