Problem : Dependency Hell CodeAgon 2017

Revision en1, by v_geta, 2017-01-26 22:31:15

The link to the problem is given below : CodeAgon Dependency Hell

My Code

I was trying to compare the values in "qu" with multiple criteria :

If the component number for two elements in qu is not the same then it compares them with the their normal values only and does not care about the component number, however if it is same it sorts the members of the same component depending on the level of the node in the graph .

The output i wanted : 8 2 5 6 7 3 4 8 1

The output i actually get : 8 2 5 7 3 4 8 1 6

can i make such comparators ?

Tags codeagon, dfs, comparators

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English v_geta 2017-01-26 22:31:15 708 Initial revision (published)