- node_comparator should look like this
bool node_comparator(node *a, node *b)
{
// User puts in the node comparator here
return a->value > b->value; // A sample comparator
}
- Write this command on terminal to compile
gcc node.c priority_queue.c main.c
- To run the File
- Give the test-case of your choice
- node_comparator should look like this
bool node_comparator(node *a, node *b)
{
// User puts in the node comparator here
return a->seen_time < b->seen_time; // A sample comparator
}
- Write this command on terminal to compile
gcc node.c priority_queue.c main.c
- To run the File
- Give the test-case of your choice
- node_comparator should look like this
bool node_comparator(node *a, node *b)
{
// User puts in the node comparator here
return a->seen_time > b->seen_time; // A sample comparator
}
- Write this command on terminal to compile
gcc node.c priority_queue.c main.c
- To run the File
- Give the test-case of your choice