Solución

@eduahg·26/5/2026TypeScript
solution.tsTypeScript
export function intercalateChars(first: string, second: string): string {

  if(first === "" || second === "") return first || second;

  
  let intercalate = ''

    
  for (let i = 0; (i < first.length) || (i < second.length); i++) {
    intercalate += first[i] + second[i]
  }
  


  return intercalate.replaceAll('undefined','');
}
0respuestas
Respuestas

Aún no hay respuestas

¡Sé el primero en responder!

Escribir un comentario

Recuerda ser amable. Estás comentando la solución de otra persona. Comparte tu perspectiva de forma constructiva y respetuosa.

Debes iniciar sesión para publicar un comentario.