Word wheel: Difference between revisions
Content deleted Content added
→{{header|Python}}: optimised. |
→{{header|Python}}: Sort unnecessary - preserves dictionary order. |
||
Line 226: | Line 226: | ||
gridcount = Counter(grid) |
gridcount = Counter(grid) |
||
mid = grid[4] |
mid = grid[4] |
||
return |
return [word for word in dictionary |
||
if mid in word and not (Counter(word) - gridcount)] |
|||