Hi,
There are some posts on this from a few years ago, but I believe I have covered what is discussed there, but still got a couple of errors I can’t address. Test result is this:
I have allow_switches check done for both one and two edits:
edit_one_letter(word,allow_switches)
edit_one_letter(X,allow_switches)
My general logic looks correct:
-
call edit_one_letter(word,allow_switches) and perform one edit on the original word.
The called function takes account of the argument for allow_switches and based on value for allow_switches performs the appropriate edits. -
Take the returned set from step one above, and use this as a list and iterate through each word and perform a second edit with edit_one_letter(X,allow_switches) for each iteration (X holds the word). For each iteration, take the returned set and update this into a clean set from the first step.
I’ve tried removing allow_swtiches from the second edit step and still get two errors, but further away from expected outcomes. With allow_switches in for the second edit, I’m only 1 off the expected value in both errors.
Anyone have any guidance/thoughts on this, and what I might be missing?