latest build | master branch
Word Calculator
The main objective of this project is to take a word as an input and give count of permutation of dictionary defined
words that can be formed by using alphabets in the given word
Implementation phase
- [x] Keep a file with all the words
- [x] a logic to find out all the permuation of word that can be formed by using all the alphabets in a give word
- [x] after getting the permutation , match with dictonary words and if hit return them as a list
- [x] print the list as the final output
- Can permutate a string with less than 10 characters
- Can check if the given word is a dictionary word or not
- Dictionary word support is only given for alphabets
To get the permutation of a given word
curl -X POST \
https://word-calculator-3tuc.onrender.com/permute \
-H 'Cache-Control: no-cache' \
-H 'Content-Type: application/json' \
-d '{
"wordToPermutate":"hello"
}'
To check if it is a dictionary word
curl -X POST \
https://word-calculator-3tuc.onrender.com/isDictionaryWord \
-H 'Cache-Control: no-cache' \
-H 'Content-Type: application/json' \
-d '{
"word":"hello"
}'