Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The optimal number of moves follows this recurrence relations: T(1) = 1 T(N) = 2 * T(N-1) + 1


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: