Skip to content

Latest commit

 

History

History

315-countAndSay

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

countAndSay

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

The Question

Given a sequence of numbers, generate a "count and say" string.

Example:

> countAndSay(112222555)
> "two 1s, then four 2s, then three 5s"

> countAndSay(3333333333)
> "ten 3s"

Installing & Running

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