摘要:
// 链表求和 ListNode *addTwoList(ListNode *p, ListNode *q){ ListNode *pCur = p; ListNode *qCur = q; ListNode *head = new ListNode(-1); ListNode *ret = hea 阅读全文
摘要:
// 遍历字符串,使用set集合记录走过的字符// 字符串不含重复字符的最长子串 int longChirldStr(string s){ set<char> tmpSet; int ret = 0; int right = 0; int size = s.length(); if(size ==0 阅读全文