MCPcopy Create free account
hub / github.com/acm-clan/algorithm-stone / main

Function main

templates/red-black-tree.cpp:386–403  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

384RBTree::RBTreeNode* RBTree::RBTreeNode::NIL = new RBTree::RBTreeNode(0, 0, RBTree::BLACK);
385
386int main()
387{
388 RBTree t;
389 int i, count = 5;
390 int key;
391
392 srand(time(NULL));
393 int arr[] = {2, 8, 4, 9, 1};
394 for (i = 0; i < count; ++i) {
395 t.set(arr[i], i);
396 }
397
398 for (i = 0; i < count; ++i) {
399 t.remove(arr[i]);
400 }
401
402 return 0;
403}

Callers

nothing calls this directly

Calls 2

setMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected