Quote (AbDuCt @ Mar 15 2016 07:22pm)
I thought that as well. The catch that screwed with me is everyone must know the superstar. So even if a person knows no one, everyone must know that person.
i think that only matters if it's possible nobody is the superstar? the way you worded it, i assumed he must exist.
even then, it sounds straight forward?
first loop: ask everyone if he knows nobody. if you come across nobody or a second person, then superstar doesnt exist.
second loop: we found exactly one person who knows nobody. ask everyone else if they know him.
This post was edited by carteblanche on Mar 15 2016 06:28pm