You need to sign in to do that
Don't have an account?

Find duplicate in a string
Hi All,
I was asked this Q in one of the interviews. Eliminate all duplicate values from a string. For Eg. I/P = 'THEMISSISSIPPI'
O/P = 'THEM' (all other values are truncated because they are duplicates)
Can you please help. Appreciate your response.
Thanks.
I was asked this Q in one of the interviews. Eliminate all duplicate values from a string. For Eg. I/P = 'THEMISSISSIPPI'
O/P = 'THEM' (all other values are truncated because they are duplicates)
Can you please help. Appreciate your response.
Thanks.
It works with below code. But, I am not sure, if there is any direct method to achieve this.
Try this is in dev console.
Thanks
Surya G
All Answers
It works with below code. But, I am not sure, if there is any direct method to achieve this.
Try this is in dev console.
Thanks
Surya G