290. Word Pattern
# Easy
Two methods:
Because this problem requireds one to one map, we need two maps, {word: letter} and {letter:word}
One hash map, each word and letter maps to its index of its first appearing in the lists
Last updated
# Easy
Two methods:
Because this problem requireds one to one map, we need two maps, {word: letter} and {letter:word}
One hash map, each word and letter maps to its index of its first appearing in the lists
Last updated