摘要: With highways available, driving a car from Hangzhou to any other city is easy. But since the tank capacity of a car is limited, we have to find gas s 阅读全文
posted @ 2018-09-05 19:18 lypbendlf 阅读(145) 评论(0) 推荐(0) 编辑
摘要: A Binary Search Tree (BST) is recursively defined as a binary tree which has the following properties: The left subtree of a node contains only nodes 阅读全文
posted @ 2018-09-05 17:19 lypbendlf 阅读(219) 评论(0) 推荐(0) 编辑
摘要: Given N integers, you are supposed to find the smallest positive integer that is NOT in the given list. Input Specification: Each input file contains 阅读全文
posted @ 2018-09-05 16:32 lypbendlf 阅读(229) 评论(0) 推荐(0) 编辑
摘要: 1.后序+中序=》前序 转自:https://www.liuchuo.net/archives/2090 假设: 已知后序与中序输出前序(先序):后序:3, 4, 2, 6, 5, 1(左右根)中序:3, 2, 4, 1, 6, 5(左根右) //需要多加复习。 2.前序+中序=》后序 转自:htt 阅读全文
posted @ 2018-09-05 11:58 lypbendlf 阅读(311) 评论(0) 推荐(0) 编辑