+ 6
[challenge] erdoes number 👫👬👬👬👬👬1⃣2⃣3⃣4⃣5⃣6⃣
Paul Erdoes was an Hungarian mathematic. He published very much. He has erdoes number 0. Everyone who published together with him, has erdoes number 1 everyone who publishes with an erdoes-number 1 gets erdoes number 2... which are the erdoes numbers of the following if they published this kind: Algo: Ben, Cli, Erdoes, Ful Ben: Algo, Cli, Gogo Cli: Algo, Ben, Dodo Dodo: Cli, Ful, Erdoes Erdoes: Algo,Dodo Ful: Dodo,Algo, Hum Gogo: Ben, Hum Hum:Ful,Gogo
10 Answers
+ 4
@sayan lowest number counts
if no number than number is infinity
+ 4
I did it with van Rossums shortest path
The details are here:
https://www.python.org/doc/essays/graphs/
And this is my implementation
https://code.sololearn.com/c6zFc27R9XYq/#py
+ 3
@sayan congrats! solution is right!
+ 3
@ sayan nice, DFS is what I had in mind as well. You are always the master of concise codes...I prefer a bit more clarity. :)
+ 2
Nice little challenge, here is my code.
https://code.sololearn.com/cHyXy6K3tlvG/?ref=app
+ 2
@ Erik...
comments added for grasp..
thanks for your words✌
+ 1
@ oma..
heres mine
https://code.sololearn.com/cc7yZ3WWZDS4/?ref=app
+ 1
@ batman
hers my 2nd version...
smallest and most efficient so far..
(( assuming the given data as tree..its the BREADTH FIRST SEARCH method applied))
https://code.sololearn.com/cp4F70kk8Oql/?ref=app
0
woohooo
relieved..