Some "hello world"-style data structure objects. Helps with inane tech interview questions and/or teaching computer science - whichever comes first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Charles Reid cf3df633a4 Update 'c/README.md' 5 years ago
..
README.md Update 'c/README.md' 5 years ago
arrays.c updating C array example. 5 years ago
binary_tree.c fix typo in C binary tree. 5 years ago
linked_list.c removing binary tree. 5 years ago

README.md

C Data Structures

Linked lists in C can be implemented using structs, which are essentially very primitive objects or data containes.

C allows the user to populate these structs with data, and C takes care of where these are stored in memory.

Arrays

A simple example that shows the use of arrays in C.

Linked List

linked_list.c

The linked list implementation in C utilizes a struct to hold data and a pointer. This implements one struct for linked list nodes, and one struct for the linked list proper.

Binary Tree

binary_tree.c

This implements a binary tree data structure. There is a lot more functionality that has not been added to the class, so this is a very basic binary tree.