Daily Archives: August 21, 2012

Remove duplicate characters in a given string keeping only the last occurrences

Remove duplicate characters in a given string keeping only the last occurrences. For example, if the input is ‘tree traversal’ the output will be ‘ tversal’. using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication2 {     class Program … Continue reading

Posted in Information Technology | Leave a comment