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....
2 Respuestas
+ 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
0
Consider output scenario 2..
All are sending data to first one