Skip to content

This repository contains different data structure implementation in golang

Notifications You must be signed in to change notification settings

kunaltaitkar/datastructure

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Data structure Implementation in Go Lang


    package main

    import (
    	"datastructure/linkedList"
    	"fmt"
    )

    func main() {

    	list := linkedList.NewList()

    	input := []int{5, 4, 6, 7, 9, 10, 54, 99, 60} // random input for linked list

    	for index := 0; index < len(input); index++ {

    		newNode := list.CreateNode(input[index])

    		list.Insert(newNode) // to insert single node at last of the linked list

    	}

    	list.Display() //to- display value of nodes

    	list.Remove(&linkedList.Node{Value: 99})

    	fmt.Println("After remove")

    	list.Display() //to- display value of nodes

    }



About

This repository contains different data structure implementation in golang

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages