15
Art S
Last seen 1 year ago
Member for 7 years, 4 months, 28 days
Difficulty Normal
Nov. 8, 2017, 9:26 p.m. | + 1 | for Comment suic: Hi, I like this. Can you do it without `...if...else...`? Regards, suic |
Nov. 8, 2017, 9:24 p.m. | + 1 | for Comment suic: Hi, 1. Here you don't need to import `operator`: `bin(m.__xor__(n)).count('1')` 2. and of course you... |
Nov. 8, 2017, 8:33 p.m. | + 1 | for Comment suic: Hi, 1. `[::2]` is enough. 2. `if Z else` is even more pythonic. 3. The next step: Get rid off `...if... |
Oct. 16, 2017, 8:37 p.m. | + 1 | for Comment Czarinov: Sorry for comment spam, man, but reading your solutions always cracks me up :D... you're my number o... |
March 21, 2017, 11:50 a.m. | + 1 | for Comment SiLiKhon: Your solution gives: >>> checkio([111, 122, 112]) [111, 122, 112] >>> checkio([111, 122, 222, 112]) ... |
Feb. 28, 2017, 8:40 p.m. | + 1 | for Comment veky: Why `str`? And why not simply l, data = divmod(...) |