摘要: 如果相邻两个字符在同一个substring里,那么第一个字符在source的index要小于第二个字符。 解法1: 使用dp[i]记录[x,y]. x: shortest way to form target[0:i]; y: current index of target[i-1] in sour 阅读全文
posted @ 2020-01-07 14:04 热锅上的码裔 阅读(220) 评论(0) 推荐(0)