![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
LeetCode
sun_apple_123
这个作者很懒,什么都没留下…
展开
-
Add Two Numbers
/** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode(int x) : val(x), next(NULL) {} * }; */class Solution {public: ListNode* ad原创 2016-09-09 09:41:35 · 201 阅读 · 0 评论 -
Longest Substring Without Repeating Characters
枚举:O(N^2)class Solution {public: int lengthOfLongestSubstring(string s) { bool unique[130]; int maxl=0; for(int i=0;i<s.length();i++){ int len=0;原创 2016-09-09 10:00:28 · 201 阅读 · 0 评论