when you encounter the letter for first time then simply increment array
having index=(ASCII value-65)
and put that in vector  next time when you will encounter the same variable
again then condition will fail hence no change in content of vector
 hence in the end simply print the vector

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to