摘要: Given a sorted(increasing order) array with unique integer elements, write an algorithm to create a binary search tree with minimal height. 这道题给了我们一个从 阅读全文
posted @ 2018-06-15 06:17 infinitycoder 阅读(140) 评论(0) 推荐(0) 编辑
摘要: Given a directed graph, design an algorithm to find out whether there is a route between nodes. 这道题让我们判断给定的一个图的任意两个节点间是否有路径。首先我们要知道如何定义一个图, 一般最常用的两种表示 阅读全文
posted @ 2018-06-15 04:36 infinitycoder 阅读(246) 评论(0) 推荐(0) 编辑