def numberSup(A): dict_1 = []*1000 list_a = [] set_a = () A.sort() k = list(("{0:b}".format(i) for i in A)) gen = list((int(i) for i in k)) if len(set(gen))!= len(A): print("Duplicate Elements are not allowed"),A,gen for i in A: for j in gen: key = i + len(str(j))
Quote:How will i store the sum from both the lists as i traverse through both of them namely A and gen.?
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)