{"id":16841634,"url":"https://github.com/kevinpollet/go-datastructures","last_synced_at":"2025-03-18T05:16:24.188Z","repository":{"id":138628668,"uuid":"194833374","full_name":"kevinpollet/go-datastructures","owner":"kevinpollet","description":"Data structures implementations in Go","archived":false,"fork":false,"pushed_at":"2021-12-23T08:32:26.000Z","size":79,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-24T11:44:36.581Z","etag":null,"topics":["abstract-data-types","binary-search-tree","data-structures","datastructures","dequeue","go","golang","list","queue","stack","union-find"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kevinpollet.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-07-02T09:32:53.000Z","updated_at":"2022-09-02T01:09:15.000Z","dependencies_parsed_at":null,"dependency_job_id":"15045a41-cb9c-418b-ae8d-f06b65057aa7","html_url":"https://github.com/kevinpollet/go-datastructures","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevinpollet%2Fgo-datastructures","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevinpollet%2Fgo-datastructures/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevinpollet%2Fgo-datastructures/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevinpollet%2Fgo-datastructures/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kevinpollet","download_url":"https://codeload.github.com/kevinpollet/go-datastructures/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244160053,"owners_count":20408021,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["abstract-data-types","binary-search-tree","data-structures","datastructures","dequeue","go","golang","list","queue","stack","union-find"],"created_at":"2024-10-13T12:42:33.731Z","updated_at":"2025-03-18T05:16:24.167Z","avatar_url":"https://github.com/kevinpollet.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Go Data Structures\n\n[![GoDoc](https://godoc.org/github.com/kevinpollet/go-datastructures?status.svg)](https://godoc.org/github.com/kevinpollet/go-datastructures) [![Go Report Card](https://goreportcard.com/badge/github.com/kevinpollet/go-datastructures)](https://goreportcard.com/report/github.com/kevinpollet/go-datastructures)\n\nProject to keep track of my learnings and experiments while learning the Go programming language and reviewing the common Abstract Data Types (ADT), data structures, and algorithms.\n\n## Installation\n\n```shell\n$ go get github.com/kevinpollet/go-datastructures\n```\n\n## Abstract Data Types \u0026 Data Structures\n\n### List\n\n```go\ntype List interface {\n\tAdd(value interface{})\n\tClear()\n\tGet(index int) (interface{}, error)\n\tIndexOf(value interface{}) int\n\tInsert(index int, value interface{}) error\n\tIsEmpty() bool\n\tRemove(index int) (interface{}, error)\n\tSize() int\n}\n```\n\n### Stack\n\n```go\ntype Stack interface {\n\tClear()\n\tIsEmpty() bool\n\tPeek() (interface{}, error)\n\tPop() (interface{}, error)\n\tPush(value interface{})\n\tSize() int\n}\n```\n\n### Queue\n\n```go\ntype Queue interface {\n\tClear()\n\tIsEmpty() bool\n\tOffer(value interface{})\n\tPeek() (interface{}, error)\n\tPoll() (interface{}, error)\n\tSize() int\n}\n```\n\n### Dequeue / Double-ended Queue\n\n```go\ntype Dequeue interface {\n\tClear()\n\tIsEmpty() bool\n\tOfferFirst(value interface{})\n\tOfferLast(value interface{})\n\tPeekFirst() (interface{}, error)\n\tPeekLast() (interface{}, error)\n\tPollFirst() (interface{}, error)\n\tPollLast() (interface{}, error)\n\tSize() int\n}\n```\n\n### PriorityQueue\n\n```go\ntype PriorityQueue interface {\n\tClear()\n\tIsEmpty() bool\n\tOffer(value interface{}, priority int)\n\tPeek() (interface{}, error)\n\tPoll() (interface{}, error)\n\tSize() int\n}\n```\n\n## Readings \u0026 Lectures\n\n- [Abstract Data Types](https://brilliant.org/wiki/abstract-data-types/)\n- [Easy to Advanced Data Structures](https://www.udemy.com/introduction-to-data-structures/)\n\n## License\n\n[MIT](./LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkevinpollet%2Fgo-datastructures","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkevinpollet%2Fgo-datastructures","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkevinpollet%2Fgo-datastructures/lists"}