6 1
1 1 1 1 1 1
1 2

ans should be 1 2, your answer is 1 6.
There must be atleast two open rooms for a draught to pass (as per the question).
Hence ,in this test case , rooms numbered 3,4,5,6 don’t have a draught passing through them.
may be change the base case. :smiley:

Man I feel so sad :frowning: I really thought I had it covered, disjointed tree and randomly ordered links. Although my five test cases (including the two you provided, thanks!) pass, my submission still says wrong answer.

Hmm I wish the authors would provide a good set of test cases for us to run our code against.

If anyone spots where I went wrong, I would be grateful!

Please upload solution of author and tester.