Remove duplicate characters from a string tech mahindra 2022

                                                             Remove duplicate characters


Return a string with non-duplicate characters, ie, if you have a string as metti then output should be mett, keeping the order of characters same. Example 1: Input1: Csharpstarz Output: Csharptz Explanation: On removing duplicate elements from the orignal string Csharpstarz, we Csharptz.......



connect with me on
 




connect with me on

Comments

Popular posts from this blog

PERFECT SQUARE asked by MountainBlue

Harry and Porter asked in MountainBlue ,2022

Chomsky's hierarchy Explanation :