How do you implement the function MERGE in MIPS?
struct node{
int value;
node *next;
}
p1 and p2 are pointers to SORTED LINKED LIST.
The function:
node *merge(node *p1, node *p2)
Sort two of the sorted list and store it in one linked list and return the pointer to it.
p/s:assume that you can call void *new(# of bytes) that will allowcate a memory for it.
write the merge in MIPS.
help me please.
struct node{
int value;
node *next;
}
p1 and p2 are pointers to SORTED LINKED LIST.
The function:
node *merge(node *p1, node *p2)
Sort two of the sorted list and store it in one linked list and return the pointer to it.
p/s:assume that you can call void *new(# of bytes) that will allowcate a memory for it.
write the merge in MIPS.
help me please.