Given an array arr[] of length N, the task is to find the count of pairs of indices (i, j) (0-based indexing) such that prefix… Read More

# Tag Archives: suffix-sum

Given an array arr[] consisting of N integers and an integer K, the task is to find the number of times the absolute difference between… Read More

Given an array arr[] consisting of N integers, the task is to count ways to split array into two subarrays of equal sum by changing… Read More

Given an array arr[] consisting of N integers, the task is to count the number of ways to split the array into two subarrays of… Read More

Given an array arr[] consisting of non-negative integers, the task is to find the number of ways to split the array into three non-empty contiguous… Read More

Given an array arr[] and an integer X, the task is to print the longest subarray such that the sum of its elements isn’t divisible… Read More

Given a circular array of size N. The task is to check if, for every index i starting from 0 to N-1, there exists an… Read More

Given an array of size N, the task is to find the encrypted array. The encrypted array is obtained by replacing each element of the… Read More

What’s New

Most popular in suffix-sum

- Count of ways to split an Array into three contiguous Subarrays having increasing Sum
- Replace every element of the array by sum of all other elements
- Count ways to split array into two equal sum subarrays by replacing each array element to 0 once
- Count ways to split array into two equal sum subarrays by changing sign of any one array element
- Check if every index i has an index j such that sum of elements in both directions are equal

Most Visited Articles