Hacker News new | past | comments | ask | show | jobs | submit login

Unless I missed something, it matches if you don't treat it as a directed graph. Edge (1,6) accounts for both (1,6) and (6,1) in that case.



You didn't miss anything. This is why these are good interview questions, because it weeds out the people who are asleep.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: