Compute the cumulative sum (also known as prefix sum or scan) of an input array:
The cumulative sum at each position is the sum of all elements up to and including that position.
Sample Run Results
Hit "Run" to test your code with sample inputs
Loading editor...
CUDA C++ environment
For the best coding experience, please switch to a desktop device to write and submit your solution.