摘要:
Given n points on a 2D plane, find the maximum number of points that lie on the same straight line. 阅读全文
posted @ 2014-07-07 21:34
jdflyfly
阅读(181)
评论(0)
推荐(0)
摘要:
Sort a linked list using insertion sort. 阅读全文
posted @ 2014-07-07 21:20
jdflyfly
阅读(156)
评论(0)
推荐(0)
摘要:
Design and implement a data structure for Least Recently Used (LRU) cache. It should support the following operations: get and set. 阅读全文
posted @ 2014-07-07 21:16
jdflyfly
阅读(249)
评论(0)
推荐(0)
摘要:
Given a binary tree, return the postorder traversal of its nodes' values. 阅读全文
posted @ 2014-07-07 14:26
jdflyfly
阅读(190)
评论(0)
推荐(0)
摘要:
Given a binary tree, return the preorder traversal of its nodes' values. 阅读全文
posted @ 2014-07-07 14:21
jdflyfly
阅读(165)
评论(0)
推荐(0)
摘要:
Given a singly linked list L: L0→L1→…→Ln-1→Ln,
reorder it to: L0→Ln→L1→Ln-1→L2→Ln-2→… 阅读全文
posted @ 2014-07-07 13:35
jdflyfly
阅读(183)
评论(1)
推荐(0)
摘要:
Given a linked list, return the node where the cycle begins. If there is no cycle, return null. 阅读全文
posted @ 2014-07-07 13:13
jdflyfly
阅读(1240)
评论(3)
推荐(0)
摘要:
Given a linked list, determine if it has a cycle in it. 阅读全文
posted @ 2014-07-07 13:07
jdflyfly
阅读(197)
评论(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. 阅读全文
posted @ 2014-07-07 12:38
jdflyfly
阅读(146)
评论(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 @ 2014-07-07 01:12
jdflyfly
阅读(218)
评论(0)
推荐(0)

浙公网安备 33010602011771号