you can create a stack. In the stack, you search the every next point and push current point of the node.

jami (jami)
If you find the point in the stack, that is link loop in your link table. For more efficient search, you can sort the points in the stack before searching.
2001-7-24 -05:00

回到话题: 看了#142300,也来贴一道MS研究所在中国招聘的考题......

回到论坛: HOME枫下论坛枫下论坛主坛工作学习IT技术讨论