Skip to content

senorflor/structures

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

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

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages