Skip to content

Sortren/data-structures-v2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Common Data Structures Implemented in Go

Go

Technologies used:

Go



Linked List

  1. Specified in /src/pkg/models/linked_list.go
  2. 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
  3. Everything is based on generics so list might be any type
  4. After detaching the node from list, the memory is going to be free by garbage collector
  5. 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 ...]"
  6. The list is bidirectional, every node points to the next and previous node.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages