[-1,-7,7,-4,19,6,-9,-5,-2,-5] 6 Output: tail connects to node index 7 Expected: tail connects to node index 6
Through my eyes count, the pos is 7, not 6, is this the wrong testcase?