PHP | 程序检查变位
我们有两个字符串,我们需要检查字符串是否是Anagram。 例子
1 2 3 4 5 | Input : "anagram", "nagaram" Output : yes Input : "mat", "fat" Output : no |
我们使用以下内建函数来解决这个问题: count_chars():该…
我们有两个字符串,我们需要检查字符串是否是Anagram。 例子
1 2 3 4 5 | Input : "anagram", "nagaram" Output : yes Input : "mat", "fat" Output : no |
我们使用以下内建函数来解决这个问题: count_chars():该…