Search:

Type: Posts; User: helloworld922

Search: Search took 0.09 seconds.

  1. Replies
    10
    Views
    3,366

    Re: Simple linked list

    setActNext is probably the easiest:


    act = act.next


    To remove after act:

    Since you have a doubly-linked list, you need to adjust both the next and the previous of the elements before and...
  2. Replies
    10
    Views
    3,366

    Re: Simple linked list

    That's not a particularly efficient method to get the size of the linked list :P Each time, you must run through all the elements just to find the size. A better way is to have a size variable, then...
Results 1 to 2 of 2