Last Updated: 4 Jul, 2016

Remove Duplicates

Easy
Asked in companies
CIS - Cyber InfrastructureSAP LabsAdobe

Problem statement

Given a string S, remove consecutive duplicates from it recursively.

Input Format :
String S
Output Format :
Output string
Constraints :
1 <= |S| <= 10^3
where |S| represents the length of string