A handy collection of C algorithms compiled into one header file for use anywhere.
Go to file
Andrew Lalis 1ccc72c16d trying out the code in readme 2017-05-22 15:34:36 +02:00
source Added a tester file and used pointers for stacks. 2017-05-22 15:26:21 +02:00
.gitignore Added a tester file and used pointers for stacks. 2017-05-22 15:26:21 +02:00
README.md trying out the code in readme 2017-05-22 15:34:36 +02:00
test.c Added a tester file and used pointers for stacks. 2017-05-22 15:26:21 +02:00

README.md

Algorithms

A handy collection of C algorithms compiled into one header file for use anywhere. Feel free to include this file with any C project, as long as you keep the comment at the top with a little copyright notice.

Functionality

Stack

The stack is probably the most basic storage structure, using the 'first-in, first-out' approach.

  • c Stack createStack()
  • c void freeStack(Stack *s)
  • c void pushToStack(int item, Stack *s)
  • c int popFromStack(Stack *s)
  • c void printStack(Stack s)

Queue

Linked List

Heap (Priority Queue)