08 2018 档案

[leetcode]890. 查找和替换模式
摘要:题目 你有一个单词列表 words 和一个模式 pattern,你想知道 words 中的哪些单词与模式匹配。 如果存在字母的排列 p ,使得将模式中的每个字母 x 替换为 p(x) 之后,我们就得到了所需的单词,那么单词与模式是匹配的。 (回想一下,字母的排列是从字母到字母的双射:每个字母映射到另 阅读全文

posted @ 2018-08-19 19:47 刘好念 阅读(23) 评论(0) 推荐(0)

[leetcode]205. Isomorphic Strings 同构字符串
摘要:题目描述: Given two strings s and t, determine if they are isomorphic. Two strings are isomorphic if the characters in s can be replaced to get t. All occ 阅读全文

posted @ 2018-08-19 19:31 刘好念 阅读(18) 评论(0) 推荐(0)