program

package
v0.0.0-...-f11faa9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 20, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrettyPrinQueue

func PrettyPrinQueue(q *queue.Queue[int])

func PrettyPrintHashtable

func PrettyPrintHashtable(input string) (string, error)

func PrettyPrintTree

func PrettyPrintTree(preorder []int)

Types

type Algorithm

type Algorithm struct {
	Name string
	Exit bool
	Data DataStructure
}

Algorithm is the struct that holds the algorithm data to be run

func (*Algorithm) ExitCli

func (a *Algorithm) ExitCli(tprogram *tea.Program)

ExitCli if true, exits the cli

func (*Algorithm) Run

func (a *Algorithm) Run()

Runs the chosen algorithm from the GoSlow package

type DataStructure

type DataStructure struct {
	Name  string
	Exit  bool
	Value string
	Size  int
}

DataStructure is the struct that holds the data structure data to be run

type TreeNode

type TreeNode struct {
	Value       int
	Left, Right *TreeNode
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL