| ||||||||||
| Online Judge | Problem Set | Authors | Online Contests | User | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest | |||||||||
Re:求个算法 帮忙下!In Reply To:求个算法 帮忙下! Posted by:heiheigo at 2005-05-25 13:33:36 前序遍历的第一个是根。。。 到中序遍历去找,中序遍历的左右分别对应两个子树,然后递归。。。 你理解了意思以后,改成非递归我也不管。。。 Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator