akshitagit / akshitagit/JavaScript

Strings Compression

Abierto
#17 1 comentario 0 reacciones 0 asignados Ver en GitHub
good first issue Hacktoberfest hacktoberfest2020 Javascript Strings
Lenguaje dominante
JavaScript
Estrellas
90
Forks
106
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

Take as input S, a string. Write a function that does basic string compression. Print the value returned. E.g. for input “aaabbccds” print out a3b2c2d1s1.
Input Format

A single String S
Constraints

1 < = length of String < = 1000
Output Format

The compressed String.
Sample Input

aaabbccds

Sample Output

a3b2c2d1s1

Explanation

In the given sample test case 'a' is repeated 3 times consecutively, 'b' is repeated twice, 'c' is repeated twice and 'd and 's' occurred only once.

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.