k*******3 发帖数: 1909 | 1 Given data on Facebook members friending/defriending each other on Facebook,
find out whether a given pair of members are currently friends
应该什么思路? | g*c 发帖数: 4510 | 2 bidirectional graph,hash map就可以了
这题肯定有follow up
Facebook,
【在 k*******3 的大作中提到】 : Given data on Facebook members friending/defriending each other on Facebook, : find out whether a given pair of members are currently friends : 应该什么思路?
|
|