Answers for "how do you print the first non-repeated character from a string?"

0

how do you print the first non-repeated character from a string?

for ( i=0 to str.length())
hash_map[str[i]]++;

for(i=0 to str.length())
  if(hash_map[str[i]]==1)
  return str[i]
Posted by: Guest on January-21-2022

Code answers related to "how do you print the first non-repeated character from a string?"

Browse Popular Code Answers by Language