摘要: https://leetcode.com/problems/valid anagram/?tab=Description 思路1:排序 Time complexity: O(nlogn) Space complexity: O(1) 思路2:Hash Table Time complexity: O 阅读全文
posted @ 2017-02-18 15:58 mioopoi 阅读(152) 评论(0) 推荐(0)
摘要: https://leetcode.com/problems/longest substring without repeating characters/?tab=Description 要求在一个字符串中寻找最长的没有重复字符的子串。注意,是子串(substring),不是子序列(subseque 阅读全文
posted @ 2017-02-18 14:03 mioopoi 阅读(191) 评论(0) 推荐(0)