Skip to content

Latest commit

 

History

History

002-circular-linked-list

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Circular Linked List

Print

func main() {
    aa := Node{Value: 1}
    bb := Node{Value: 2}
    cc := Node{Value: 3}
    
    aa.Next = &bb
    aa.Previous = &cc
    bb.Next = &cc
    bb.Previous = &aa
    cc.Next = &aa
    cc.Previous = &bb

    Print(&aa)
}