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

Method getInternal

templates/rb.cpp:151–163  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

149 }
150
151 RBTreeNode* getInternal(RBTreeNode* n, int k)
152 {
153 if (!n || n == nil) {
154 return nullptr;
155 }
156 if (n->k == k) {
157 return n;
158 }
159 if (k < n->k) {
160 return getInternal(n->left, k);
161 }
162 return getInternal(n->right, k);
163 }
164
165 int get(int key)
166 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected