Skip to content

Latest commit

 

History

History
18 lines (11 loc) · 632 Bytes

File metadata and controls

18 lines (11 loc) · 632 Bytes

scramble

Interview question of the issue #290 of rendezvous with cassidoo.

The Question

If you mix up the order of letters in a word, many people can slitl raed and urenadnstd tehm. Write a function that takes an input sentence, and mixes up the insides of words (anything longer than 3 letters).

Example:

> scramble(["A quick brown fox jumped over the lazy dog."])
> "A qciuk bwron fox jmepud oevr the lzay dog."

Installing & Running

Just pnpm i to install all dependencies and then pnpm t to run the tests!