This repo is a self study with a collection of different data structures, their implementation and use cases.
Sometimes implementations may vary because of experimentation and note taking, meaning they aren't standardized.
It's also part of the "Computer Science Roadmap" at Roadmap.sh
The repo is divided in many folders containing their respective data structure.
Inside them, different files will be found, such as:
- C files. For low level studies
- Js files. For high level studies
- Markdown notes.
- Array
- Vector (Dynamic Array)
- Linked List
- Stack
- Queue
- HashTable
- Tree
- Binary Tree
- Graph
- Heap
With C files (.c)
you'll need a compiler to compile it as an executable (.exe
). This is to prevent any kind of issues with .exe programs. The one I used is GCC.
To edit and test yourself, do the following:
- Change directory to the desired data structure
cd ./folder
- Compile the C file with GCC
gcc filename.c -o output.exe
- Run the file
./output.exe
JavaScript files can run directly on Node.js enviroment.
To test JS files, you can run the test file directly
cd folder
node ./data-structure.test.js