Skip to content

thulasipavankumar/WordCalculator

Repository files navigation

latest build CircleCI | master branch CircleCI

GitHub

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

  • Keep a file with all the words
  • a logic to find out all the permuation of word that can be formed by using all the alphabets in a give word
  • after getting the permutation , match with dictonary words and if hit return them as a list
  • print the list as the final output
  1. Can permutate a string with less than 10 characters
  2. Can check if the given word is a dictionary word or not
  3. 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"
}'

About

Given a word find all the permutations with jumbling the characters

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •