Python implementation using dictionary/hash table
# main function def main(): # 'dicti' is a hash table # 's' is string dicti = {}; s = "asldhj aldalkd7^Awu3e8 ue8u1o2h3o82708q2" # iterting over the string for i in range(len(s)): # if the character is not in hash table ,then store the character with value ==1 # and print(or store) the echaracter if not s[i] in dicti: dicti[s[i]] = 1 print s[i] if __name__ == "__main__": main() -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.