MCPcopy Create free account
hub / github.com/TheAlgorithms/C / segment_tree_init

Function segment_tree_init

data_structures/binary_trees/segment_tree.c:140–155  ·  view source on GitHub ↗

* Initializes Segment Tree * Accquires memory for segment tree * and fill the leaves of segment tree with data from array * @param arr the array data upon which segment tree is build * @param elem_size size of each element in segment tree * @param len total no of elements in array * @param identity the identity element for combine_function * @param func the combine_function used to build se

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

testFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected