注册一亩三分地论坛,查看更多干货!
您需要 登录 才可以下载或查看附件。没有帐号?注册账号 
x
Question 1 — Simple Network
Objective
The goal of this exercise is to find the endpoint node of a simple network, or find the loop if there is one.
In this simple network, each node is linked to at most one outgoing node in a one way forward direction.
Implement the function:- compute(start_node_id, from_ids, to_ids)
复制代码 which should return>1 < node id < 5000The node ids are not necessarily ordered. The example above does not have node #8.A node will never be directly linked to itself.
求加米! |