Skip to content

Add files via upload#1

Open
Owusu-MK wants to merge 1 commit intojobaerkhan:masterfrom
Owusu-MK:master
Open

Add files via upload#1
Owusu-MK wants to merge 1 commit intojobaerkhan:masterfrom
Owusu-MK:master

Conversation

@Owusu-MK
Copy link

Modified 'get(int index)', 'add(int index, E element)', 'remove(int index)' and 'set(int index, E element)' to count/move to indexed list node from the head or tail depending of which is closest. E.g. in a linked list size of 100 items, list.set(80, E element) would move/count from tail to indexed node instead of count from head sentinel node to 80'th index node.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant