This video is part of Strings section under GFG SDE Sheet.
In this video, we are given, a string without spaces, the task is to remove duplicates from it.
Note: The original order of characters must be kept the same.
Example 1:
Input: S = "zvvo"
Output: "zvo"
Explanation: Only keep the first
occurrence
Do check out:-
Article: https://www.geeksforgeeks.org/remove-duplicates-from-a-given-string/
Problem: https://practice.geeksforgeeks.org/problems/remove-duplicates3034/1
SDE Sheet: https://www.geeksforgeeks.org/sde-sheet-a-complete-guide-for-sde-preparation/