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

Method left_child_idx

pygorithm/data_structures/heap.py:24–28  ·  view source on GitHub ↗

retrieve the left child

(idx)

Source from the content-addressed store, hash-verified

22
23 @staticmethod
24 def left_child_idx(idx):
25 """
26 retrieve the left child
27 """
28 return (idx * 2) + 1
29
30 @staticmethod
31 def right_child_idx(idx):

Callers 1

favoriteMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected