File tree Expand file tree Collapse file tree 4 files changed +18
-11
lines changed Expand file tree Collapse file tree 4 files changed +18
-11
lines changed Original file line number Diff line number Diff line change 1- #include <stdio.h>
21#include "LL.h"
32
43/* For visualization: 4 --> 10 --> 7 --> 5 --> 16 */
Original file line number Diff line number Diff line change 11#ifndef LL_H
22#define LL_H
33
4- #include <stdlib.h> //malloc
5-
6- /* Declaring global struct of type Node, and alias NODE */
7- typedef struct Node
8- {
9- int data ;
10- struct Node * ptr ;
11- } NODE ;
12-
4+ #include "LL_shared.h"
5+ #include <stdio.h>
136
147/* Function Declarations */
158
Original file line number Diff line number Diff line change 1+ #ifndef LL_SHARED_H
2+ #define LL_SHARED_H
3+
4+
5+ #include <stdlib.h> //malloc
6+
7+ /* Declaring global struct of tag/type Node, and alias NODE */
8+ typedef struct Node
9+ {
10+ int data ;
11+ struct Node * ptr ;
12+ } NODE ;
13+
14+
15+ #endif // LL_SHARED_H
Original file line number Diff line number Diff line change 11#ifndef STACK_USING_LL_H
22#define STACK_USING_LL_H
33
4- #include "LL .h"
4+ #include "LL_shared .h"
55
66typedef NODE STACKITEM ;
77
You can’t perform that action at this time.
0 commit comments