https://github.com/dan-almenar/golang-datastructures
https://github.com/dan-almenar/golang-datastructures
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/dan-almenar/golang-datastructures
- Owner: dan-almenar
- Created: 2021-07-24T14:06:50.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-08-01T15:26:28.000Z (almost 4 years ago)
- Last Synced: 2025-01-16T03:16:31.120Z (4 months ago)
- Language: Go
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# golang-datastructures
## **Disclaimer: This is a work in progress.**
A full set of packages, each for every major data structure (linked lists, binary trees, etc) made from scratch in Go.
This is a personal project to help me move forward in my understanding of both Golang as a language and Data Structures as a field.
**Package linkdlist covers both single and doubly linked lists with implementations for:**
- Creating an empty list which nodes can nold any sort of data types.
- Adding new nodes (as head).
- Inserting new nodes after a specified node.
- Find a node based on its value.
- Delete a node based on its value.**Note: Finding nodes functionality crashes when trying to look for an slice or arrays. I'm trying to solve this issue by implementing the reflect library, yet I have not succeeded at that. Any help in that regard would be greatly appreciated.**
The main.go file is just a placeholder to showcase the funcionality of the rest of the packages.
Enjoy!
### **Dan**