79087590

Date: 2024-10-14 20:15:28
Score: 0.5
Natty:
Report link

C++'s std::inclusive_scan recognises the case which accepts an initial value. To deal with this case, the input array of values is prepended with the initial value and the prefix sum is computed on the resulting array in an inclusive manner. Check here.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Single line (0.5):
Posted by: Hari