2016年1月16日

摘要: Singleton is a most widely used design pattern. If a class has and only has one instance at every moment, we call this design as singleton. For exampl... 阅读全文
posted @ 2016-01-16 06:45 一心一念 阅读(133) 评论(0) 推荐(0) 编辑
摘要: Given a directed graph, design an algorithm to find out whether there is a route between two nodes.ExampleGiven graph:A----->B----->C \ | \ | ... 阅读全文
posted @ 2016-01-16 05:29 一心一念 阅读(276) 评论(0) 推荐(0) 编辑
摘要: Given k strings, find the longest common prefix (LCP).ExampleFor strings "ABCD", "ABEF" and "ACEF", the LCP is "A"For strings "ABCDEFG", "ABCEFG" and ... 阅读全文
posted @ 2016-01-16 05:02 一心一念 阅读(183) 评论(0) 推荐(0) 编辑

导航