https://github.com/dknight/algos
https://github.com/dknight/algos
Last synced: 28 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/dknight/algos
- Owner: dknight
- License: mit
- Created: 2023-03-14T18:11:08.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-03-23T21:19:30.000Z (about 3 years ago)
- Last Synced: 2025-12-27T02:07:40.043Z (6 months ago)
- Language: Go
- Size: 75.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Collection of algorithms and data structures written in Go.
For personal use. DO NOT RELY ON THIS CODE, every minute everything can be
changed.
### Notes
* All data structures are **not thread-safe**.
* This data structures are made for educational purposes, it is strongly not
recommended to use them in production environments. Use it at own risk. For
example for lists it is better to use [lists from standard
library](https://pkg.go.dev/container/list).
#### Built-in data structures
Go has some built-in data structures out of box.
* Array `[n int]T`
* Map `map[T comparable]U`
* Slices `[]T`
* Structures `type T struct`
## Data structures
* Graph
* Lists
- Linked List
- Doubly Linked List (unfinished)
* Queues
- Queue
* Set
* Stack
## Algorithms
* Balanced brackets
* Factorial
* Stocks problem
* Postfix notation
# TODO
More will be implemented soon.
## Contribution
Any help is appreciated. Found a bug, typo, inaccuracy, etc.? Please do not
hesitate to make a pull request or file an issue.
# License
MIT 2023