Solutions for Ignore Repeating String

    • @Geraldpof
    • @Charles, submitted in Python 3, achived 100% score
    def solve(string):  
    
        occ = {}  
        ls=""
        # Start traversing the string  
        for i in range(0, len(string)):  
    
            # Convert uppercase to lowercase  
            temp = string[i].lower() 
    
            # Increment occurrence count  
            occ[temp] = occ.get(temp, 0) + 1
    
            # If count is odd then print the character  
            if occ[temp] & 1: 
                ls+=string[i]
    
        return ls