thulasipavankumar / WordCalculator

Given a word find all the permutations with jumbling the characters
https://wordjumble.herokuapp.com/
MIT License
0 stars 1 forks source link
java permutations springboot

latest build CircleCI | master branch CircleCI

GitHub

download release binary jar

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

  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"
}'