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问题在哪呢?
谢谢