題意很簡單給出一個字符串,求一個最長沒有k模式重復的前綴Two strings S1 and S2 are k-identical up to permutation of letters if:
這就提示我們可以用字符串的最小表示來做最簡單的表示法就是"[a的個數] [b的個數] ..[z的個數]",然后用字符串來hash貼代碼
posted on 2010-10-31 00:00 yzhw 閱讀(172) 評論(0) 編輯 收藏 引用 所屬分類: data struct
Powered by: C++博客 Copyright © yzhw