Skip to content

Latest commit

 

History

History

290-scramble

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

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!