写点什么

第 8 周作业

用户头像
娄江国
关注
发布于: 2020 年 07 月 29 日

next1 = 链表 1.header

Map<Value, Node> map = new HashMap<>;

while next1 不为空:

map.put(next1.value, next1)

next1 = next1.next


next2 = 链表 2.header

while next2 不为空:

if next2.value 在 map 中:

return map.get(next2.value)

next2 = next2.next


return null


用户头像

娄江国

关注

还未添加个人签名 2017.11.10 加入

还未添加个人简介

评论

发布
暂无评论
第8周作业