(Trie + DP) 623. K Edit Distance

 

Ideas: prefix tree to store all the prefix string.

 

 

 1. The state transition equation:

 2. Calculate the order

 

Guess you like

Origin www.cnblogs.com/Bella2017/p/11359850.html