ACM-Hash
文章平均质量分 75
LarryNLPIR
专注NLP/IR/Machine Learning/Data Mining
展开
-
LeetCode - Longest Substring Without Repeating Characters
Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters for "abcabcbb" is "abc", which the length is 3. For原创 2015-02-03 06:29:35 · 1981 阅读 · 1 评论 -
LeetCode Longest Consecutive Sequence
Given an unsorted array of integers, find the length of the longest consecutive elements sequence.For example,Given [100, 4, 200, 1, 3, 2],The longest consecutive elements sequence is [1, 2, 3, 4]. Re原创 2015-03-22 12:08:06 · 1665 阅读 · 0 评论 -
LeetCode Copy List with Random Pointer
A linked list is given such that each node contains an additional random pointer which could point to any node in the list or null.Return a deep copy of the list.思路分析:这题要求拷贝链表,包括内容,next指针和random指针。容易想原创 2015-04-20 14:08:09 · 1398 阅读 · 0 评论 -
LeetCode Contains Duplicate
Given an array of integers, find if the array contains any duplicates. Your function should return true if any value appears at least twice in the array, and it should return false if every element is原创 2015-05-31 12:00:03 · 5853 阅读 · 0 评论