+ 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

3rd Nov 2017, 9:37 AM
Oma Falk
Oma Falk - avatar
10 Answers
+ 4
@sayan lowest number counts if no number than number is infinity
3rd Nov 2017, 2:39 PM
Oma Falk
Oma Falk - avatar
+ 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
3rd Nov 2017, 7:08 PM
Oma Falk
Oma Falk - avatar
+ 3
@sayan congrats! solution is right!
3rd Nov 2017, 4:09 PM
Oma Falk
Oma Falk - avatar
+ 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. :)
24th Nov 2017, 10:19 PM
Erik
+ 2
Nice little challenge, here is my code. https://code.sololearn.com/cHyXy6K3tlvG/?ref=app
24th Nov 2017, 3:03 PM
Erik
+ 2
@ Erik... comments added for grasp.. thanks for your words✌
25th Nov 2017, 5:59 AM
sayan chandra
sayan chandra - avatar
3rd Nov 2017, 3:52 PM
sayan chandra
sayan chandra - avatar
6th Nov 2017, 4:55 PM
Hiroki Masuda
Hiroki Masuda - avatar
+ 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
24th Nov 2017, 3:43 PM
sayan chandra
sayan chandra - avatar
0
woohooo relieved..
3rd Nov 2017, 4:10 PM
sayan chandra
sayan chandra - avatar