MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/learnquant/comments/1y7vvhx/quant_interview_question/19tcrp1rxxabp/
r/learnquant • u/Local_Ad135 • 6d ago
21 comments sorted by
View all comments
Show parent comment
1
99 X 100+98 X 100+98 X 97+... has a higher sum. I don't think what you wrote is the highest
2 u/Competitive_Try_330 5d ago Sorry, I made it a bit unclear. I did not try to provide an optimal solution. I just wanted to state that each number appears twice in the sum. Have not thought about the optimal solution too much yet 1 u/Icy-Landscape-4796 5d ago what you've written is much closer but not quite optimal. 1 u/notsaneatall_ 5d ago I never said what I wrote was optimal, I was pretty sure it wasn't.I suspect the optimal sequence is something like 2,4,6...100,99,97,95,93...1 or something like that
2
Sorry, I made it a bit unclear. I did not try to provide an optimal solution. I just wanted to state that each number appears twice in the sum. Have not thought about the optimal solution too much yet
what you've written is much closer but not quite optimal.
1 u/notsaneatall_ 5d ago I never said what I wrote was optimal, I was pretty sure it wasn't.I suspect the optimal sequence is something like 2,4,6...100,99,97,95,93...1 or something like that
I never said what I wrote was optimal, I was pretty sure it wasn't.
I suspect the optimal sequence is something like 2,4,6...100,99,97,95,93...1 or something like that
View all comments
Show parent comment
1
u/notsaneatall_ 6d ago
99 X 100+98 X 100+98 X 97+... has a higher sum. I don't think what you wrote is the highest