摘要: 前几天在sicily做到一道关于二叉树重建的问题,引出了许许多多的思考。这道题的链接在:http://soj.me/1935其实这道题不算太难,之前在数据结构课上,做过类似的,不过要将二叉树重建过来。代码的实现如下:#include <iostream>#include <queue>#include <string>using namespace std;template <typename T> struct BinaryNode{ T elem; BinaryNode *left; BinaryNode * right; BinaryNod 阅读全文
posted @ 2013-02-23 18:20 中大黑熊 阅读(269) 评论(0) 推荐(0) 编辑