Codewars DuplicateEncoder Java solution

Publicado em: 17 Dezembro 2021
no canal de: Dave Kirkwood
613
9

Duplicate Encoder is the third exercise that I have tried in CodeWars. Its a 6 kyu task. A string has to be converted into a series of brackets of the same length as the string. An open bracket is required if the character appears only once in the original string and a closed bracket represents a character that appears more than once in the original string.

My solution first loops through the string and counts each of the characters. It then loops back through the original string to create the sequence of brackets, based on the count of characters from the first loop.


Nesta página do site você pode assistir ao vídeo on-line Codewars DuplicateEncoder Java solution duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Dave Kirkwood 17 Dezembro 2021, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 613 vezes e gostou 9 espectadores. Boa visualização!