First non repeating character

Soluciones a diferentes katas


First non repeating character

Kata extraída del repositorio de Lean Mind

Algunos ejemplos

  • “a” -> “a”
  • “aa” -> “”
  • “stress” -> “t”, since the letter t only occurs once in the string, and occurs first in the string.
  • “moonmen” -> “e”

Mi solución

Código

Live coding kata

Inicio