Strings-Remove Duplicates
Ouverte
algorithm
good first issue
Hacktoberfest
hacktoberfest2020
Java
Moderate
Strings
- Langage dominant
- Java
- Étoiles
- 101
- Forks
- 131
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
Take as input S, a string. Write a function that removes all consecutive duplicates. Print the value returned.
Input Format
String
Constraints
A string of length between 1 to 1000
Output Format
String
Sample Input
aabccba
Sample Output
abcba
Explanation
For the given example, "aabccba", Consecutive Occurrence of a is 2, b is 1, and c is 2.
After removing all of the consecutive occurences, the Final ans will be : - "abcba".
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Évaluation
Cette issue n'a pas encore été évaluée.