• + 6 comments
    def getRecord(scores):
        ls = hs = s[0];
        lc = hc = 0;
        
        for score in scores:
            if(score > hs):
                hs = score;
                hc += 1;
            
            if(score < ls):
                ls = score;
                lc += 1;
                
        return [hc, lc]
    

    This worked