leetcode
文章平均质量分 83
快使用双截棍巴拉
这个作者很懒,什么都没留下…
展开
-
leetcode/algorithm 148. Sort List
问题:Sort a linked list in O(n log n) time using constant space complexity. 晚上刚讲了merge sort,就试着写了一下 /** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next原创 2017-03-01 01:07:05 · 174 阅读 · 0 评论 -
leetcode/algorithm 3. Longest Substring Without Repeating Characters
问题: Given a string, find the length of the longest substring without repeating characters. Examples: Given "abcabcbb", the answer is "abc", which the length is 3. Given "bbbbb", the answ原创 2017-02-27 17:00:09 · 161 阅读 · 0 评论