https://leetcode.com/problems/merge-k-sorted-lists/description/
my code
https://paste.ubuntu.com/p/MBqn88Z78b/
選python2 可以過
python3出現下面錯誤
Line 18: TypeError: unorderable types: ListNode() < ListNode()
根據python3 doc
https://docs.python.org/3/library/heapq.html#basic-examples
python2 vs python3 heapq都用tuple第一個元素來當作比較,
而我也將itm[0]放了int
請問我的python3問題在哪呢?
謝謝