Deletreándolo

Published by Helen Yu in

Crea una función que reciba una palabra y la deletree, agregando letras consecutivamente hasta completar la palabra.

Ejemplos

spelling("bee") ➞ ["b", "be", "bee"]

spelling("happy") ➞ ["h", "ha", "hap", "happ", "happy"]

spelling("eagerly") ➞ ["e", "ea", "eag", "eage", "eager", "eagerl", "eagerly"]

Notas

N/A