text: function to insert a new_node in a list . Note that this function expects a pointer to head_ref as this can modify the head of the input linked list ( similar to push ( ) )
code: def sortedInsert ( head_ref , new_node ) : NEW_LINE INDENT current = None NEW_LINE DEDENT