Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

ankitjosh78/data_structures

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
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

 
 
 

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.