Open aravindsrivats opened 9 years ago
What is the input? The rack?
The input is the rack as a string without spaces and the count of blank spaces required
The count of blanks spaces cannot be an input. The blanks will be represented by a special character and sent in along with the input.
You are gonna handle the input from the user. The user will enter the blank spaces with special character. The blank spaces should be handled from your module. You can convert the special character to count.
Sure. We will calculate the number of occurrences within the function.
So we'll follow this method to find the list of possible words. If any questions, raise a new issue.
Based on Jayasruthi's method, we'll be creating a descending list of dictionary words based on its score. With each word in the sorted list, compare it with the input and remove the characters from the word if its present in the input. If resultant string is empty, it means the word is found. If it not empty and if blank spaces are required, the number of remaining words can be used to compare the required blank spaces.