上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 23 下一页
摘要: 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 阅读(176) 评论(0) 推荐(0) 编辑
摘要: Sort a linked list using insertion sort. 阅读全文
posted @ 2014-07-07 21:20 jdflyfly 阅读(152) 评论(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 阅读(243) 评论(0) 推荐(0) 编辑
摘要: Given a binary tree, return the postorder traversal of its nodes' values. 阅读全文
posted @ 2014-07-07 14:26 jdflyfly 阅读(186) 评论(0) 推荐(0) 编辑
摘要: Given a binary tree, return the preorder traversal of its nodes' values. 阅读全文
posted @ 2014-07-07 14:21 jdflyfly 阅读(161) 评论(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 阅读(173) 评论(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 阅读(1225) 评论(3) 推荐(0) 编辑
摘要: Given a linked list, determine if it has a cycle in it. 阅读全文
posted @ 2014-07-07 13:07 jdflyfly 阅读(186) 评论(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 阅读(141) 评论(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 阅读(212) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 23 下一页