|
|
back to boardI was trying to write TRIE for mnemonic words and DFS that tree with phone number. And I have failed. After that, I wrote just 2-D dimensional dynamic programming solution. DP[i] [j] is minimal number of words to memorize substring [i;j]. And I got success. Used Python. Just input, not stdin from sys. i think you only need 1 array instead of dp[i,j] So probably there is jury solution available on the internet So I have examined jury solution Looks too simple Can't believe it is able to solve the problem where do you find the jury solution? |
|
|