about | help | code help+videos | done | prefs |
spellingBee
spellingBee(correct, guess) -- Given the correct spelling of a word, correct, and the contestant's guessed spelling, guess, return the string "correct" if the guess is spelled exactly correctly, "almost" if there are at most two mistakes in the spelling, and "wrong" if three or more letters are different. You can assume that all guesses are the correct length. spellingBee('hello', 'hello') → 'correct' spellingBee('python', 'python') → 'correct' spellingBee('hello', 'hallo') → 'almost' ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Copyright Nick Parlante 2017 - privacy