728x90
def solution(s, n):
    return sorted(s, key=lambda x:(x[n],x))
 
728x90

+ Recent posts