随笔分类 -  LeetCode

摘要:题目Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters ... 阅读全文
posted @ 2015-01-23 20:15 不专业的程序猴子 阅读(1034) 评论(0) 推荐(0)
摘要:题目You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a singl... 阅读全文
posted @ 2015-01-23 20:04 不专业的程序猴子 阅读(128) 评论(0) 推荐(0)
摘要:题目:Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the two... 阅读全文
posted @ 2015-01-23 19:42 不专业的程序猴子 阅读(209) 评论(0) 推荐(0)
摘要:问题描述如下:Given a linked list, return the node where the cycle begins. If there is no cycle, return null.Follow up:Can you solve it without using extra s... 阅读全文
posted @ 2014-07-02 20:39 不专业的程序猴子 阅读(830) 评论(0) 推荐(0)
摘要:题目:Design and implement a data structure for Least Recently Used (LRU) cache. It should support the following operations:getandset.get(key)- Get the v... 阅读全文
posted @ 2014-06-24 18:18 不专业的程序猴子 阅读(389) 评论(0) 推荐(0)