<jupyter_start><jupyter_text>Naive Approach:<jupyter_code>def uniqueChars(string):
    new_string = ""
    for i in range(len(string)):
        if string[i] not in new_string:
            new_string += string[i]
        
    return new_string  
    
    
string = "ababacd"
print(uniqueChars(string))<jupyter_output>ababacd
abcd<jupyter_text>HashMap Approach:<jupyter_code>In Progress...<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.11031175059952038, 'fraction_numerical': 0.0, 'mean_word_length': 4.036144578313253, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 8, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '2', 'dir': 'jupyter-structured-clean-dedup', 'id': '13513', 'license': 'Unlicense', 'n_tokens_mistral': 158, 'n_tokens_neox': 154, 'n_words': 23, 'path': '18 Dictionaries/18.14 Extract Unique characters.ipynb', 'repo_name': 'suhassuhas/Coding-Ninjas---Data-Structures-and-Algorithms-in-Python', 'size': '417'}