Completed leetcode 205, 290 and 49 - #2315
Conversation
Group Anagrams (leetcode205.py)It appears that you have submitted a solution for a different problem (LeetCode 205 - Isomorphic Strings) instead of the Group Anagrams problem. Please:
VERDICT: NEEDS_IMPROVEMENT Isomorphic Strings (leetcode290.py)E wordPattern (LeetCode 290) instead of isIsomorphic (LeetCode 205). The student solved a different problem. The student solved wordPattern (LeetCode 290) instead of isIsomorphic (LeetCode 205). The student solved a different problem. The student solved wordPattern (LeetCode 290) instead of isIsomorphic (LeetCore 205). The student solved a different problem. The student solved wordPattern (LeetCode 290) instead of isIsomorphic (LeetCode 205). The student solved a different problem. The student solved wordPattern (LeetCode 290) instead of isIsomorphic (LeetCode 205). The student solved a different problem. The student solved wordPattern (LeetCode 290) instead of isIsomorphic (LeetCode 205). The student solved a different problem. The student solved wordPattern (LeetCode 290) instead of isIsIsomorphic (LeetCode 205). The student solved a different problem. The student solved wordPattern (LeetCode 290) instead of isIsomorphic (LeetCode 205). The student solved a different problem. The student solved wordPattern (LeetCode 290) instead of isIsomorphic (LeetCode 205). The student solved a different problem. The student solved wordPattern (LeetCode 290) instead of isIsomorphic (LeetCode 205). The student solved a different problem. The student solved wordPattern (LeetCode 290) instead of isIsomorphic (LeetCode 205). The student solved a different problem. The student solved wordPattern (LeetCode 290) instead of isIsomorphic (LeetCode 205). The student solved a different problem. The student solved wordPattern (LeetCode 290) same problem but with words instead of characters. The student solved wordPattern (LeetCode 290) instead of isIsomorphic (LeetCode 205). The student solved a different problem. The student solved wordPattern (LeetCode 290) instead of isIsomorphic (LeetCode 205). The student solved a different problem. The student solved wordPattern (LeetCode 205). The student solved a different problem. The student solved wordPattern (LeetCode 290) instead of isIsomorphic (LeetCode 205). The student solved a different problem. The student solved wordPattern (LeetCode 290) instead of isIsomorphic (LeetCode 205). The student solved a different problem. The student solved wordPattern (LeetCode 2025). The student solved a different problem. The student solved wordPattern (LeetCode 290) instead of isIsomorphic (LeetCode 205). The student solved a different problem. The student solved wordPattern (LeetCode 290) instead of isIsomorphic (LeetCode 205). The student solved a different problem. The student solved wordPattern (LeetCode 290) instead of isIsomorphic (LeetCode 205). The student solved a different problem. The student solved wordPattern (LeetCode 290) instead of isIsomorphic (LeetCode 205). The student solved a different problem. The student solved wordPattern (LeetCode 290) instead of isIsomorphic (LeetCode 205). The student solved a different problem. The student solved wordPattern (LeetCode 290) instead of isIsomorphic (LeetCode 205). The student solved a different problem. The student solved wordPattern (LeetCode 2025). The student solved a different problem. The student solved wordPattern (LeetCode 290) instead of isIsomorphic (LeetCode 205). The student solved a different problem. The student solved wordPattern (LeetCode 290) instead of isIsomorphic (LeetCode 205). The student solved a different problem. The student solved wordPattern (LeetCode 290) instead of isIsomorphic (LeetCode 290) instead of isIsomorphic (LeetCode 205). The student solved a different problem. The student solved wordPattern (LeetCode 290) instead of isIsomorphic (LeetCode 205). The student solved a different problem. The student solved wordPattern (LeetCode 290) instead of isIsomorphic (LeetCode 205). The student solved a different problem. The student solved wordPattern (LeetCode 290) instead of isIsomorphic (LeetCode 205). The student solved a different problem. The student solved wordPattern (LeetCode 290) instead of isIsomorphic (LeetCode 205). The student solved a different problem. The student solved wordPattern (LeetCode 290) instead of isIsomorphic (LeetCode 205). The student solved a different problem. The student solved wordPattern (LeetCode 290) instead of isIsomorphic (LeetCode 205). The student solved a different problem. The student solved wordPattern (LeetCode 290) instead of isIsomorphic (LeetCode 205). The student solved a different problem. The student solved wordPattern (LeetCode 290) instead of isIsomorphic (LeetCode 205). The student solved a different problem. The student solved wordPattern (LeetCode 290) instead of isIsomorphic (LeetCode 205). The student solved a different problem. The student solved wordPattern (LeetCode 290) instead of isIsomorphic (LeetCode 205). The student solved a different problem. The student solved wordPattern (LeetCode 290) instead of isIsomorphic (LeetCode 205). The student solved a different problem. The student solved wordPattern (LeetCode 290) instead of isIsomorphic (LeetCode 205). The student solved a different problem. The student solved wordPattern (LeetCode 290) instead of isIsomorphic (LeetCode 205). The student solved a different problem. The student solved wordPattern (LeetCode 290) instead of isIsomorphic (LeetCode 205). The student solved a different problem. The student solved wordPattern (LeetCode 290) instead of isIsomorphic (LeetCode 205). The student solved a different problem. The student solved wordPattern (LeetCode 290) instead of isIsomorphic (LeetCode 205). The student solved a different problem. The student solved wordPattern (LeetCode 205). The student solved a different problem. The student solved wordPattern (LeetCode 290) instead of isIsomorphic (LeetCode 205). The student solved a different problem. The student solved wordPattern (LeetCode 290) instead of isIsomorphic (LeetCode 205). The student solved a different problem. The student solved wordPattern (LeetCode 290) instead of isIsomorphic (LeetCode 205). The student solved a different problem. The student solved wordPattern (LeetCode 290) instead of isIsomorphic (LeetCode 205). The student solved a different problem. The student solved wordPattern (LeetCode 290) instead of isIsomorphic (LeetCode 205). The student solved a different problem. The student solved wordPattern (LeetCode 290) instead of isIsomorphic (LeetCode 205). The student solved a different problem. The student solved wordPattern (LeetCode 290) instead of isIsomorphic (LeetCode 205). The student solved a different problem. The student solved wordPattern (LeetCode 290) instead of isIsomorphic (LeetCode 205). The student solved a different problem. The student solved wordPattern (LeetCode 290) instead of isIsomorphic (LeetCode 205). The student solved a different problem. The student solved wordPattern (LeetCode 290) instead of isIsomorphic (LeetCode 205). The student solved a different problem. The student solved wordPattern (LeetCode 290) instead of isIsomorphic (LeetCode 205). The student solved a different problem. The student solved wordPattern (LeetCode 290) instead of isIsomorphic (LeetCode 205). The student solved a different problem. The student solved wordPattern (LeetCode 290) instead of isIsomorphic (LeetCode 205). The student solved a different problem. The student solved wordPattern (LeetCode 290) instead of isIsomorphic (LeetCode 205). The student solved a different problem. The student solved wordPattern (LeetCode 290) instead of isIsomorphic (LeetCode 205). The student solved a different problem. The student solved wordPattern (LeetCode 290) instead of isIsomorphic (LeetCode 205). The student solved a different problem. The student solved wordPattern (LeetCode 290) instead of isIsomorphic (LeetCode 205). The student solved a different problem. The student solved wordPattern (LeetCode 290) instead of isIsomorphic (LeetCode 205). The student solved a different problem. The student solved wordPattern (LeetCode 290) instead of isIsomorphic (LeetCode 205). The student solved a different problem. The student solved wordPattern (LeetCode 290) instead of isIsomorphic (LeetCode 205). The student solved a different problem. The student solved wordPattern (LeetCode 290) instead of isIsomorphic (LeetCode 205). The student solved a different problem. The student solved wordPattern (LeetCode 290) instead of isIs VERDICT: NEEDS_IMPROVEMENT Word Pattern (leetcode49.py)It appears you've submitted a solution for a different problem (Group Anagrams - LeetCode 49) instead of the Word Pattern problem (LeetCode 290). Please make sure you're solving the correct problem. For the Word Pattern problem, here's what you need to do:
Here's a Python solution outline: class Solution(object):
def wordPattern(self, pattern, s):
words = s.split()
if len(pattern) != len(words):
return False
p2w = {} # pattern char -> word
w2p = {} # word -> pattern char
for c, w in zip(pattern, words):
if c not in p2w:
p2w[c] = w
elif p2w[c] != w:
return False
if w not in w2p:
w2p[w] = c
elif w2p[w] != c:
return False
return TrueVERDICT: NEEDS_IMPROVEMENT |
No description provided.