Kattis Problem - Soundex 原题链接 题目类型:模拟 题意 给定 Soundex Code 编码的规则,将输入的字符串转为 Soundex Code 编码。 分析 模拟即可,注意没有定义 Soundex Code 编码的字符不用处理,连续 Sound Code 编码相同的字符视为一个。 代码 static final int[] TB = { 0, 1, 2, 3, 0, 1, 2, 0, 0