0

How to proceed for this problem: no linear data structure?

Hi All Below is problem (described in code comment)on which I don't have clue at all to proceed with solution.... https://code.sololearn.com/cCZ1FS67nf41/?ref=app I have just heard about non linear data structure and I feel that this problem can be solved by any of them I feel. Would be helpful if someone can throw some hint on this problem approach....

28th Jun 2020, 5:41 PM
Ketan Lalcheta
Ketan Lalcheta - avatar
2 odpowiedzi
+ 3
what does non-linear even mean, just count number of cycles - 1 Robin the graph will always contain a cycle since we have n edges and only n nodes
29th Jun 2020, 2:45 AM
Bobby Fischer
Bobby Fischer - avatar
0
Consider output scenario 2.. All are sending data to first one
28th Jun 2020, 8:49 PM
Ketan Lalcheta
Ketan Lalcheta - avatar