typedef struct _node *node;
struct _node {
int value;
node next;
node previous;
};
typedef struct _linkedlist *linkedlist;
struct _linkedlist {
node first;
node last;
};
node new_node(int itsvalue){
// TODO
return newnode;
}
linkedlist new_linkedlist(){
// TODO
return newlist;
}
O()
behavior is and why. O()
behavior of, and perform numerical experiments to show that behavior on lists of random numbers of various sizes. You can use either timing or number of steps as a measure.