Algorithms_in_C 1.0.0
Set of algorithms implemented in C.
include.h
1//////////////////////////////////////////////////////////////////////////////////////
2/// INCLUDES
3
4#include <stdio.h>
5#include <stdlib.h>
6////////////////////////////////////////////////////////////////////////////////
7// DATA STRUCTURES
8/**
9 * Defining the structure of the node which contains 'data' (type : integer),
10 * two pointers 'next' and 'pre' (type : struct node).
11 */
12
13struct node
14{
15 int data;
16 struct node *next;
17 struct node *pre;
18} * head, *tail, *tmp;
19
20////////////////////////////////////////////////////////////////////////////////
21// FORWARD DECLARATIONS
22
23void create();
24void enque(int x);
25int deque();
26int peek();
27int size();
28int isEmpty();
List * create(double value)
Create list function, a new list containing one node will be created.
Definition: doubly_linked_list.c:92
int isEmpty(struct Stack s)
isEmpty function
Definition: infix_to_postfix.c:112
Node, the basic data structure in the tree.
Definition: binary_search_tree.c:15
int data
data of the node
Definition: binary_search_tree.c:18