注册一亩三分地论坛,查看更多干货!
您需要 登录 才可以下载或查看附件。没有帐号?注册账号 
x
// Suppose we have some input data describing a graph of relationships between parents and children over multiple generations. The data is formatted as a list of (parent, child) pairs, where each individual is assigned a uniqu they have comman ancestor. Note: if node 1 is node2's parent, but node 1 has no parent, it should return false.
早上刚面的
求米
|