Python time limit is too tight
I have basically the same code in python and java (see below). python got TLE, but java was accepted. I propose to relax the python time limit a little bit.\n\n
I have basically the same code in python and java (see below). python got TLE, but java was accepted. I propose to relax the python time limit a little bit.\n\n**Python**\n\n    class Solution:\n    # @param head, a ListNode\n    # @return a ListNode\n    def insertionSortList(self, head):\n        srt = None\n        while head:\n            node = head\n            head = head.next\n            node.next = None\n            srt = self.insertTo(srt, node)\n        return srt\n        \n    def insertTo(self, head, node):\n        node.next = head\n        head = node\n        while node.next and node.val > node.next.val:\n            node.val, node.next.val = node.next.val, node.val\n            node = node.next\n        return head\n\n**java**\n\n    public class Solution {\n        public ListNode insertionSortList(ListNode head) {\n            ListNode srt = null;\n            while (head != null) {\n                ListNode node = head;\n                head = head.next;\n                node.next = null;\n                srt = insertTo(srt, node);\n            }\n            return srt;\n        }\n        \n        public ListNode insertTo(ListNode head, ListNode node) {\n            node.next = head;\n            head = node;\n            while (node.next != null && node.val > node.next.val) {\n                node.val = node.val ^ node.next.val;\n                node.next.val = node.val ^ node.next.val;\n                node.val = node.val ^ node.next.val;\n                node = node.next;\n            }\n            return head;\n        }\n    }
[]