LeetCode——Word Pattern的JavaScript的实现
Given a pattern and a string str,
find if str follows the same pattern.
Examples:
pattern = "abba", str = "dog
cat cat dog" should return true.pattern = "abba", str = "dog
cat cat fish"
原创
2015-10-09 15:26:42 ·
606 阅读 ·
0 评论