Runtime error forever!!

  • 0

    I carefully debugged my code and it is perfectly running on my local machine. But the online judge keep prompting "runtime error, last executed input: {}".
    Finally I change my code to an extreme naive one:

    class ListNode {
         int val;
         ListNode next;
         ListNode(int x) {
             val = x;
             next = null;
    public class Solution {
        public ListNode sortList(ListNode head) {
            return new ListNode(0);

    Still, it prompts the same problem!!!
    Is there any chance that the online judge breaks down?

Log in to reply

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.