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
13
struct
node
14
{
15
int
data
;
16
struct
node
*
next
;
17
struct
node
*pre;
18
} * head, *tail, *tmp;
19
20
////////////////////////////////////////////////////////////////////////////////
21
// FORWARD DECLARATIONS
22
23
void
create();
24
void
enque(
int
x);
25
int
deque();
26
int
peek();
27
int
size();
28
int
isEmpty
();
isEmpty
uint16_t isEmpty()
Function to check whether the stack is empty or not.
Definition
infix_to_postfix2.c:61
node
Node, the basic data structure in the tree.
Definition
binary_search_tree.c:15
node::next
struct node * next
List pointers.
Definition
bfs.c:24
node::data
int data
data of the node
Definition
binary_search_tree.c:18
data_structures
queue
include.h
Generated by
1.9.8