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.
Allison- this problem seems to pass in head as Node(0,None,None) at least for python, which makes it impossible to test for head is None, and completely throws off any attempt to create the correct algorithm. can this be revised to pass head = None?
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Inserting a Node Into a Sorted Doubly Linked List
You are viewing a single comment's thread. Return to all comments →
Allison- this problem seems to pass in head as Node(0,None,None) at least for python, which makes it impossible to test for head is None, and completely throws off any attempt to create the correct algorithm. can this be revised to pass head = None?