We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
In the editorial, I fear I do not grasp the "formal definition" of ev[i][j][k]. In my mind, the number of dances associated with a valid (i,j,k) state is unlimited (even in a single day), since we can pick up the same pairs over and over again (with probability 1-r to continue).
Is the underlying infinite sum somehow simplified ?
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Bear and Dancing
You are viewing a single comment's thread. Return to all comments →
In the editorial, I fear I do not grasp the "formal definition" of
ev[i][j][k]
. In my mind, the number of dances associated with a valid (i,j,k) state is unlimited (even in a single day), since we can pick up the same pairs over and over again (with probability1-r
to continue).Is the underlying infinite sum somehow simplified ?