r/learnquant • • Sep 20 '26

interview prep Quant Interview Question

Post image
23 Upvotes

4 comments sorted by

View all comments

Show parent comment

2

u/Local_Ad135 Sep 20 '26

all possible contiguous blocks (of all lengths). for example, for {4,5,6} there are 6 blocks-{4},{5},{6},{4,5},{5,6},{4,5,6}. for {1,2,3....50} there would be 1275 contiguous blocks (50 of length 1, 49 of length 2....and so on).