You are viewing a single comment's thread. Return to all comments →
Weird.
public static Node Insert(Node head, int x) { Node newNode = new Node(); newNode.Data = x; newNode.Next = head; return newNode; }
Your code did not pass this test case.
Input (stdin)
3 75 226 329 722 Your Output (stdout)
Right Answer! Expected Output
722 75 226 329 Compiler Message
Wrong Answer
Seems like cookies are disabled on this browser, please enable them to open this website
Insert a node at the head of a linked list
You are viewing a single comment's thread. Return to all comments →
Weird.
Your code did not pass this test case.
Input (stdin)
3 75 226 329 722 Your Output (stdout)
Right Answer! Expected Output
722 75 226 329 Compiler Message
Wrong Answer