Given an Array N unique elements ,and some elements may contain values greater than N.
For ex: 1, 8, 2147483647
To work on Fenwick Tree, we need to adjust that to a 1 — N range. Is there a way to do this ?
Fenwick Tree, N unique elements which may have values greater than N
Given an Array N unique elements ,and some elements may contain values greater than N.
For ex: 1, 8, 2147483647
To work on Fenwick Tree, we need to adjust that to a 1 — N range. Is there a way to do this ?