Skip to content

Latest commit

 

History

11 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

structures

Let us learn some golang via data structures

Questions/notes

  1. Why is the golang linked list unencapsulated, i.e. why are Elements programatically accessible? Ideas: Collapses both datum and iterator into the same struct, to help avoid repeated traversals when accessing the list in a sequence of operations.

  2. Next: a fully encapsulated, singly-linked list with:

    • O(1) Append
    • O(1) Concat (in place, obviously)
    • O(m+n) CopyConcat
    • O(n) Search
    • O(n) Remove (nil if failed)

About

Let us learn some golang via data structures

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages