摘要:
题目: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 co... 阅读全文
posted @ 2014-02-18 22:02
mickole
阅读(311)
评论(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 following ... 阅读全文
posted @ 2014-02-18 20:47
mickole
阅读(321)
评论(0)
推荐(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 runtim... 阅读全文
posted @ 2014-02-18 16:49
mickole
阅读(161)
评论(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 comp... 阅读全文
posted @ 2014-02-18 16:24
mickole
阅读(178)
评论(0)
推荐(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 @ 2014-02-18 16:03
mickole
阅读(207)
评论(0)
推荐(0)
摘要:
题目:Given a string s and a dictionary of words dict, add spaces in s to construct a sentence where each word is a valid dictionary word.Return all such... 阅读全文
posted @ 2014-02-18 15:06
mickole
阅读(290)
评论(0)
推荐(0)

浙公网安备 33010602011771号