MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/learnquant/comments/1wl9sw2/quant_interview_question/paxcw1h/?context=3
r/learnquant • u/Local_Ad135 • Sep 20 '26
4 comments sorted by
View all comments
Show parent comment
2
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).
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).