- Specified in /src/pkg/models/linked_list.go
- There is FIFO and LIFO functionality, you can push items to the front and append them to the end. So you can use it as a Stack and Queue depends on the need
- Everything is based on generics so list might be any type
- After detaching the node from list, the memory is going to be free by garbage collector
- There are two ways of printing out the list, you can do it explicitly with method "PrintExplicitly()" which will return the every element of list with its bindings such as next and previous nodes (pointers). Also there is a method "Print()" which will print the list as it would normally do in format "[ 1 2 3 4 5 ...]"
- The list is bidirectional, every node points to the next and previous node.
-
Notifications
You must be signed in to change notification settings - Fork 0
Sortren/data-structures-v2
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published