11
Matthias Wiesmann
Last seen 8 years ago
Member for 10 years, 2 months, 22 days
Difficulty Normal
Nov. 23, 2017, 1:44 p.m. | + 1 | for Comment mogers: I think itertools.combinations(cakes, 2) would be better than itertools.product(..) |
Nov. 23, 2017, 1:44 p.m. | + 1 | for Comment odwl: You can avoid the histogram with collections.Counter. |
Nov. 23, 2017, 1:43 p.m. | + 1 | for Comment odwl: return bin(n ^ m).count('1') This one seems unbeatable no? |