asen
BAN USER
Comments (4)
Followers (1)
Reputation 10
Page:
1
Comment hidden because of low score. Click to expand.
Comment hidden because of low score. Click to expand.
Comment hidden because of low score. Click to expand.
0
of 0 vote
"At i-th shop, either you buy Si coconuts or sell Si coconuts"
"If you are stressed then you must become normal at next shop"
what if cur_coconuts - S[i] is still >= n ? How do I update mood in this case ? Do we have to deliberately make cur_coconuts = n-1 so that we must become normal at next shop ? But this violates that he either sells or buys Si coconut at ith shop.
Comment hidden because of low score. Click to expand.
Page:
1
CareerCup is the world's biggest and best source for software engineering interview preparation. See all our resources.
- asen November 15, 2015