Difference of Suffix Sum And Prefix Sum

Difference of Suffix Sum And Prefix Sum

Hello @anmolaggarwal.432 prefix sum is the sum of the array which starts from left to right and goes to the end which takes the sum in the way:
prefix[0]=arr[0] and prefix[1]= arr[1]+prefix[0].
whereas the suffix sum just starts from the right to left.

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.