pybites / challenges

PyBites Code Challenges
https://codechalleng.es/challenges/
693 stars 2.29k forks source link

Pcc02 #656

Closed ronaldokun closed 4 years ago

ronaldokun commented 4 years ago

Difficulty level (1-10): [7] Estimated time spent (hours): [8] Completed (yes/no): [Yes] I stretched my coding skills (if yes what did you learn?): Efficient iteration with the itertools and filter function. Other feedback (what can we improve?): It's not clear we must check for all permutations (NUM_LETTERS...1) to find the optimal word. There were cases where there weren't any valid words in the dictionary for any permutations of NUM_LETTERS, so I searched for one letter less until I found a optimal word.