Skip to content

Commit

Permalink
update go package
Browse files Browse the repository at this point in the history
  • Loading branch information
farischt committed Jan 16, 2023
1 parent 63cc6ab commit a34659f
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module ds
module github.com/farischt/ds

go 1.19
6 changes: 4 additions & 2 deletions graph/main.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
package graph

import (
"ds/queue"
"ds/stack"
"fmt"

"github.com/farischt/ds/queue"
"github.com/farischt/ds/stack"
)

type IGraph[T comparable] interface {
Expand Down Expand Up @@ -215,6 +216,7 @@ func (g *Graph[T]) LargestComponentSize() int {
return maxSize
}

// Type element used to store the node and the distance from the source.
type Element[T any] struct {
node T
distance int
Expand Down
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package main
package ds

import (
"fmt"
)

func main() {
func Main() {
fmt.Println(`
██╗ ██╗███████╗██╗ ██████╗ ██████╗ ███╗ ███╗███████╗ ████████╗ ██████╗
██║ ██║██╔════╝██║ ██╔════╝██╔═══██╗████╗ ████║██╔════╝ ╚══██╔══╝██╔═══██╗
Expand Down
5 changes: 3 additions & 2 deletions tree/bst.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
package tree

import (
"ds/queue"
"ds/stack"
"fmt"

"github.com/farischt/ds/queue"
"github.com/farischt/ds/stack"
)

type IBinarySearchTree interface {
Expand Down

0 comments on commit a34659f

Please sign in to comment.