Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

Re:求个算法 帮忙下!

Posted by js05 at 2005-05-25 13:42:13
In Reply To:求个算法 帮忙下! Posted by:heiheigo at 2005-05-25 13:33:36
前序遍历的第一个是根。。。

到中序遍历去找,中序遍历的左右分别对应两个子树,然后递归。。。

你理解了意思以后,改成非递归我也不管。。。

Followed by:

Post your reply here:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator