MCPcopy Index your code
hub / github.com/OmkarPathak/pygorithm / right_child_idx

Method right_child_idx

pygorithm/data_structures/heap.py:31–35  ·  view source on GitHub ↗

retrieve the right child

(idx)

Source from the content-addressed store, hash-verified

29
30 @staticmethod
31 def right_child_idx(idx):
32 """
33 retrieve the right child
34 """
35 return (idx * 2) + 2
36
37 def insert(self, data):
38 """

Callers 1

favoriteMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected