When I ran this code, my output gives True, which is what expected, but in Test Case it is showing that output was False
I would like to give some feedback about ...
From: https://checkio.org/mission/find-friends/solve/
HTTP_USER_AGENT:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 Safari/537.36
('scout3-mr99', 'scout3-plane2', 'plane2-batman', 'batman-cat', 'robin-batman', 'robin-cat', 'robin-scout4', 'out00-scout4', 'base-cat', 'base-plane2')
Are friends robin base
{'scout4': ['robin', 'out00'], 'cat': ['batman', 'robin', 'base'], 'scout3': ['mr99', 'plane2'], 'robin': ['batman', 'cat', 'scout4'], 'plane2': ['batman', 'scout3', 'base'], 'out00': ['scout4'], 'batman': ['cat', 'robin', 'plane2'], 'mr99': ['scout3'], 'base': ['cat', 'plane2']}
----> Searching.. robin base []
Friends of robin ['batman', 'cat', 'scout4']
----> Searching.. batman base ['robin']
Friends of batman ['cat', 'robin', 'plane2']
----> Searching.. cat base ['robin', 'batman']
----> Searching.. robin base ['robin', 'batman', 'cat']
----> Searching.. plane2 base ['robin', 'batman', 'cat']
----> Searching.. cat base ['robin', 'batman', 'cat']
----> Searching.. scout4 base ['robin', 'batman', 'cat']
True
Created at: 2016/06/05 00:31; Updated at: 2016/06/06 05:32