GUVI
Back

SOLUTION

Created 2 years ago
2140 Views
5 Comments
ANURAGs87pLY
@ANURAGs87pLY
ANURAGs87pLY
@ANURAGs87pLYProfile is locked. Login

You are given a number with duplicate digits your task is to remove the immediate duplicate digits and print the result

Input Description:
You are given a long string of digits

Output Description:
Print the desired result print -1 if result length is 0

Sample Input :
1331
Sample Output :
11


SOLUTION.......................................PLZZZZZZZZZZZZZZZZ

Comments (5)
Please login to comment.
 
Powered by habitate.io Habitate