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

Method remove

templates/rb.cpp:411–417  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

409 }
410
411 void remove(int k)
412 {
413 auto z = getInternal(root, k);
414 if (z) {
415 deleteInternal(z);
416 }
417 }
418
419private:
420 RBTreeNode* root = nullptr;

Callers 15

main2Function · 0.45
mainFunction · 0.45
generate_codeforcesMethod · 0.45
generate_leetcodeMethod · 0.45
merge_segmenttreeFunction · 0.45
merge_rbtreeFunction · 0.45
merge_kmpFunction · 0.45
merge_trieFunction · 0.45
show_leftMethod · 0.45
remove_edgeMethod · 0.45
move_nodesMethod · 0.45
hide_allMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected