Open giggling-ginger opened 9 months ago
count = defaultdict(int, sum(map(Counter, board), Counter())) if count[word[0]] > count[word[-1]]: word = word[::-1]
could be improved to:
count = sum(map(Counter, board), Counter()) if count[word[0]] > count[word[-1]]: word = word[::-1]
still works and the syntax is shorter.
can i do?? can i open the pull request of solution provided by you?
Yes of course! Go ahead
could be improved to:
still works and the syntax is shorter.