Frage im Vorstellungsgespräch bei FIS

Write the Pseudo code to Remove the repeated character's in the string without using string functions. Example input string "hello" returns output "helo".

Antworten zu Vorstellungsgespräch

Anonym

22. Feb. 2018

I told first I will convert the string to char array and then sort the characters and then compare subsequent characters. If they are not same I'll add that character to the resulting/output string else not.

Anonym

30. Mai 2018

var newstring= string.Split(' ').Distinct(); Used linq function