下班前最后一贴,suv推荐哪个?# PhotoGear - 摄影器材
b*i
1 楼
在翻看以前的面经
看到两道题是这样的:
1.Given a binary tree of integers, give an ascii representation of the tree
so that people can visually see the structure of the tree. An ascii
representation is a single string, so that printing out this single string
gives the required tree.
2.Given a graph, there are some nodes with degree 1. These nodes are called
terminators. There are a several terminators in the graph. There are single
/multiple paths from each terminators to each other terminators. Compute the
average path length of all such paths.
没有什么思路。请牛人指教!
看到两道题是这样的:
1.Given a binary tree of integers, give an ascii representation of the tree
so that people can visually see the structure of the tree. An ascii
representation is a single string, so that printing out this single string
gives the required tree.
2.Given a graph, there are some nodes with degree 1. These nodes are called
terminators. There are a several terminators in the graph. There are single
/multiple paths from each terminators to each other terminators. Compute the
average path length of all such paths.
没有什么思路。请牛人指教!