Algorithms_in_C 1.0.0
Set of algorithms implemented in C.
Loading...
Searching...
No Matches
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();
uint16_t isEmpty()
Function to check whether the stack is empty or not.
Definition infix_to_postfix2.c:61
Node, the basic data structure in the tree.
Definition binary_search_tree.c:15
struct node * next
List pointers.
Definition bfs.c:24
int data
data of the node
Definition binary_search_tree.c:18