上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 33 下一页
摘要: 题目: Given a linked list, determine if it has a cycle in it. Follow up:Can you solve it without using extra space? 链接: http://leetcode.com/problems/lin 阅读全文
posted @ 2015-04-19 11:22 YRB 阅读(888) 评论(0) 推荐(0) 编辑
摘要: 题目:Given a stringsand a dictionary of wordsdict, add spaces insto construct a sentence where each word is a valid dictionary word.Return all such poss... 阅读全文
posted @ 2015-04-19 11:21 YRB 阅读(1666) 评论(0) 推荐(0) 编辑
摘要: 题目: Given a string s and a dictionary of words dict, determine if s can be segmented into a space-separated sequence of one or more dictionary words. 阅读全文
posted @ 2015-04-19 11:19 YRB 阅读(1531) 评论(1) 推荐(0) 编辑
摘要: 题目: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 co... 阅读全文
posted @ 2015-04-19 11:18 YRB 阅读(431) 评论(1) 推荐(0) 编辑
摘要: 题目: Given an array of integers, every element appears three times except for one. Find that single one. Note:Your algorithm should have a linear runti 阅读全文
posted @ 2015-04-19 11:15 YRB 阅读(488) 评论(0) 推荐(0) 编辑
摘要: 题目: Given an array of integers, every element appears twice except for one. Find that single one. Note:Your algorithm should have a linear runtime com 阅读全文
posted @ 2015-04-19 11:07 YRB 阅读(215) 评论(0) 推荐(0) 编辑
摘要: 题目: There are N children standing in a line. Each child is assigned a rating value. You are giving candies to these children subjected to the followin 阅读全文
posted @ 2015-04-19 11:05 YRB 阅读(389) 评论(0) 推荐(0) 编辑
摘要: 题目: There are N gas stations along a circular route, where the amount of gas at station i is gas[i]. You have a car with an unlimited gas tank and it 阅读全文
posted @ 2015-04-19 11:03 YRB 阅读(423) 评论(0) 推荐(0) 编辑
摘要: 题目: Clone an undirected graph. Each node in the graph contains a label and a list of its neighbors. OJ's undirected graph serialization: Nodes are lab 阅读全文
posted @ 2015-04-19 11:01 YRB 阅读(1274) 评论(0) 推荐(0) 编辑
摘要: 题目:Given a strings, partitionssuch that every substring of the partition is a palindrome.Return the minimum cuts needed for a palindrome partitioning ... 阅读全文
posted @ 2015-04-19 10:56 YRB 阅读(839) 评论(0) 推荐(0) 编辑
上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 33 下一页