MCPcopy Create free account
hub / github.com/codemistic/Data-Structures-and-Algorithms / findKthMin

Function findKthMin

CPP/Trees/kthMinimumElement.cpp:41–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39}
40
41int findKthMin(struct node *root, int k)
42{
43 vector<struct node *> nodes;
44 saveNode(root, nodes);
45
46 return nodes[k - 1]->key;
47}
48
49int main()
50{

Callers 1

mainFunction · 0.85

Calls 1

saveNodeFunction · 0.85

Tested by

no test coverage detected