Akuna CapitalCodingMembers
Array Challenge: Left-Comparison Running Counter
Members only
Akuna intern OA array problem whose statement is deliberately wordy: for each index you accumulate signed differences against every element to its left. The catch is that the sign rule collapses, so the whole thing reduces to an O(n) running-sum identity — the naive O(n^2) loop times out on the hidden tests. It is one of the three rotating problems in the QR/SWE intern HackerRank set.
RS
SWE
prefix-sum
array
math
medium
Frequency
Medium
Last asked
2025-09-24
Stage
oa
Log in to continue reading the full content
Comments
Sign in to join the discussion
Loading...
