12790 - The "Win-stay and Lose-shift" Strategy
Moderator: Board moderators
-
- New poster
- Posts: 2
- Joined: Tue Oct 28, 2014 9:22 pm
Re: 12790 - The "Win-stay and Lose-shift" Strategy
how I can compute Y in this problem, please!!
-
- Guru
- Posts: 5947
- Joined: Thu Sep 01, 2011 9:09 am
- Location: San Jose, CA, USA
Re: 12790 - The "Win-stay and Lose-shift" Strategy
Try all the possibilities, use DP to speed it up.
Check input and AC output for thousands of problems on uDebug!
Re: 12790 - The "Win-stay and Lose-shift" Strategy
What is the DP
Re: 12790 - The "Win-stay and Lose-shift" Strategy
Dynamic Programming. Search on web ![:)](./images/smilies/icon_smile.gif)
![:)](./images/smilies/icon_smile.gif)
A person who sees the good in things has good thoughts. And he who has good thoughts receives pleasure from life... Bediuzzaman