view combinations_permutations/word_combs/question.rst @ 0:20fea762903e

Import some exercises and solutions
author Louis Opter <kalessin@kalessin.fr>
date Sat, 29 Jun 2013 19:30:31 -0700
parents
children
line wrap: on
line source

Words Combinations
==================

Given an array of letters (i.e: a string), generate all the possible words
using these letters and return them sorted by length. Once an input letter has
been used it cannot be re-used.

A function ``is_in_dictionary(word) → bool`` is provided.