You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Write a function that, given a pointer to an object in the tree, returns the key of this object
Interface
/**
* cranbtree_t*, void* -> int
* REQUIRES: the object to be already inserted in the tree
* EFFECTS: Figures out the key of a given object in the tree
* RETURNS: the key of the object, or -1 if the object was not found
*/
int cbt_key_search(cranbtree_t* cbt, void* object);
Stub
the stub for this function can be found at src/cranbtree.c
Testing
demonstrate that it works by writing tests
The text was updated successfully, but these errors were encountered:
Task
Write a function that, given a pointer to an object in the tree, returns the key of this object
Interface
Stub
the stub for this function can be found at src/cranbtree.c
Testing
demonstrate that it works by writing tests
The text was updated successfully, but these errors were encountered: