Skip to content

ankitjosh78/data_structures

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Data Structures From Scratch in C

This repository contains core data structures implemented from scratch in C, with a focus on memory, pointers, and internal behavior rather than library usage.

No STL.
No abstractions.
No shortcuts.

The goal is to understand how data structures actually work under the hood.


🎯 Purpose of This Repository

Most tutorials teach how to use data structures.

This repository teaches:

  • How they are built
  • Why they behave the way they do
  • What trade-offs they make
  • How memory and pointers shape their performance

Every data structure here is implemented manually using:

  • malloc, realloc, free
  • Raw pointers
  • Explicit memory management

Each file contains:

A complete implementation

A demo main() function

Code written during live explanation

⚠️ Important Notes

This code is written for learning, not production use

Error handling is intentionally simple to keep concepts clear

Always validate pointers before dereferencing in real-world code :)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages