随笔分类 -  leetcode—js

摘要:问题描述: There are two sorted arrays nums1 and nums2 of size m and n respectively. Find the median of the two sorted arrays. The overall run time complex 阅读全文
posted @ 2018-07-15 12:07 小字辈 阅读(282) 评论(0) 推荐(0)
摘要:问题描述: Given a string, find the length of the longest substring without repeating characters. Examples: Given "abcabcbb", the answer is "abc", which th 阅读全文
posted @ 2018-07-15 12:02 小字辈 阅读(115) 评论(0) 推荐(0)
摘要:You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order and each of their nodes contai 阅读全文
posted @ 2018-07-13 22:29 小字辈 阅读(184) 评论(0) 推荐(0)
摘要:问题描述: 给定一个整数数列,找出其中和为特定值的那两个数。 你可以假设每个输入都只会有一种答案,同样的元素不能被重用。 示例: 我的答案: 优秀答案: 参考 http://www.cnblogs.com/kiznaiver1998/p/8605809.html 解题思路:构造了arr{ key:v 阅读全文
posted @ 2018-05-08 16:57 小字辈 阅读(522) 评论(0) 推荐(0)