We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Im getting different input, I'v just written method implementation. My code looks correct, but input my compiler is wrong I feel. Can someone help if my understanding is wrong. Why are they giving multiple linkedlist
'''
Node RemoveDuplicates(Node head) {
// This is a "method-only" submission.
// You only need to complete this method.
Delete duplicate-value nodes from a sorted linked list
You are viewing a single comment's thread. Return to all comments →
Im getting different input, I'v just written method implementation. My code looks correct, but input my compiler is wrong I feel. Can someone help if my understanding is wrong. Why are they giving multiple linkedlist
''' Node RemoveDuplicates(Node head) { // This is a "method-only" submission. // You only need to complete this method.
}
'''
Input 4 6 1 2 2 3 3 4 7 1 1 1 1 1 1 1 5 2 3 3 4 6 1 10 Your Output (stdout) 1 2 3 4 Expected Output 1 2 3 4 1 2 3 4 6 10