← ALL NOTES
Array

2145. Count the Hidden Sequences

Given differences (differences[i] = hidden[i+1] − hidden[i]) and bounds [lower, upper], count the possible hidden arrays whose every element lies in [lower, upper]. The array is fully determined by…

Loading…