Skip to content

TomGiz/6letterwordexercise

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cloned from https://bitbucket.org/behindthebuttons/6letterwordexercise/

6 letter words

There's a file in the root of the repository, input.txt, that contains words of varying lengths (1 to 6 characters).

Your objective is to show all combinations of those words that together form a word of 6 characters. That combination must also be present in input.txt
E.g.:

foobar  
fo  
obar

should result in the ouput:

fo+obar=foobar

You can start by only supporting combinations of two words and improve the algorithm at the end of the exercise to support any combinations, if time permits.

Treat this exercise as if you were writing production code; think TDD, SOLID, clean code and avoid primitive obsession. Be mindful of changing requirements like a different maximum combination length, or a different source of the input data.

Don't spend too much time on this; an hour or so is fine.

When starting this exercise, please make a fork of this repository.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages