Skip to content

mstgnz/data-structures

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Data Structures With Go

This repository explores various data structures implemented in the Go programming language.

Linked List

Linear Linked List

type linear struct {
    Data    int
    Next *linear
}

Circular Linked List

type circular struct {
    Data    int
    Next *circular
}

Double Linked List

type double struct {
    Data    int
    Next *double
    Prev *double
}

Queue

  • Array Queue
type arrayQueue struct {
    Arr []int
    ArrSize int
    FirstIndex int
    LastIndex int
}
  • Linked List Queue
type linkedListQueue struct {
    X int
    Next *linkedListQueue
}

Stack

  • Array Stack
type arrayStack struct {
    Arr []int
    ArrSize int
    Index int
}
  • Linked List Stack
type linkedListStack struct {
    X int
    Next *linkedListStack
}