do need to have knowledge of trees for understanding it
KIndly help with another approach
hello @laksh.rustagi12
solve this problem using merge sort logic (covered in ur course).
the article that u have shared is using binary index tree , so to undertand this approach u need to know about bit and its working.
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.