Help for this page

Select Code to Download


  1. or download this
    struct node {
        int data;
    ...
        }
        return start;
    }
    
  2. or download this
    package doublyLinkedList;
    
    ...
        }
        return;
    }
    
  3. or download this
    void pop(start)
        struct node *start;
    ...
        free(temp);
        return; # or maybe we can return the element popped before freeing
    + temp or whatever.
    }
    
  4. or download this
    sub pop {
        my $self = shift;
    ...
        $self->{start}{prev} = $ret->{next} = undef;
        return $ret->{element};
    }