2018年1月31日

【LeetCode】4. Median of Two Sorted Arrays

摘要: 自己虽然AC了,但是时间有点慢。网上找到一篇理论蛮容易理解的,就转过来了。我自己的做法就是模拟了一下,然后分类讨论。 原文是用C++实现,我这里用golang再实现了一下 转自:http://blog.csdn.net/hk2291976/article/details/51107778 问题介绍 阅读全文

posted @ 2018-01-31 18:32 小问号??? 阅读(134) 评论(0) 推荐(0)

【LeetCode】3. Longest Substring Without Repeating Characters

摘要: 传送门:https://leetcode.com/problems/longest-substring-without-repeating-characters/description/ 解析:定义一个头指针,记录当前子串的首位。尾指针不需要记录,遍历的时候,就相当于尾指针。当遇到已经出现过的字符时 阅读全文

posted @ 2018-01-31 10:07 小问号??? 阅读(94) 评论(0) 推荐(0)

导航