Find Original Array from Consecutive Difference Array
Filed under Turvo
The question
Given a consecutive difference array of length n-1, find the original array which is a permutation of the first n natural numbers in O(N) time complexity.
No write-up yet. Related questions below have one.
Related Turvo questions
Collected from public candidate posts and coding forums. Updated Nov 2026.