海词手机词典
  • A dynamic programming approach is good for this problem. For further improvement, it can be combined with a shortest path algorithm for graphs with nonnegative arc lengths.

    播放读音 播放读音