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...
Type: Posts; User: helloworld922
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...
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...