MCPcopy Index your code
hub / github.com/TheAlgorithms/Python / next_

Method next_

data_structures/binary_tree/fenwick_tree.py:73–74  ·  view source on GitHub ↗
(index: int)

Source from the content-addressed store, hash-verified

71
72 @staticmethod
73 def next_(index: int) -> int:
74 return index + (index & (-index))
75
76 @staticmethod
77 def prev(index: int) -> int:

Callers 3

initMethod · 0.95
get_arrayMethod · 0.95
addMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected