How to merge children to form parentsā¦plz explain on call.Question is really very confusing . My number is 6232078906
Highly Confused
ans= left_answer * 2^(end-mid)+right_answer or
st[node] = (st[node * 2 + 1] * pow(2, en - mid, mod) % mod + st[node * 2 + 2]) % mod
you can check out this code for reference.