Skip to content

QazyBi/http_task

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

http_task

Anagrams that are valid

  • ["foobar", "barfoo", "boofar"]
  • ["живу", "вижу"]
  • ["Abba", "BaBa"]

Invalid Anagrams

  • ["abba", "bba"] - во второй строке только одна буква "а"

How to use:

Add a dictionary

  • curl localhost:8080/load -d '["foobar", "aabb", "baba", "boofar", "test"]'

Find anagrams of a word

  • curl 'localhost:8080/get?word=foobar' => ["foobar","boofar"]
  • curl 'localhost:8080/get?word=raboof' => ["foobar","boofar"]
  • curl 'localhost:8080/get?word=abba' => ["aabb","baba"]
  • curl 'localhost:8080/get?word=test' => ["test"]
  • curl 'localhost:8080/get?word=qwerty' => null

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages