Timeline for The Third String
Current License: CC BY-SA 3.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Aug 20, 2017 at 19:38 | comment | added | Mr. Xcoder |
And you can also use recursion to save bytes: f=lambda x,y,i=1:(i<10**~-len(x or y)or str(i)in x+y)and f(x,y,i*2)or i (71 bytes)
|
|
Aug 20, 2017 at 19:34 | comment | added | Mr. Xcoder |
You can replace while i*10<10**len(x or y)or str(i)in x+y with while i<10**~-len(x or y)or str(i)in x+y (72 bytes)
|
|
Aug 19, 2017 at 0:57 | history | edited | benzene | CC BY-SA 3.0 |
added 44 characters in body
|
Aug 19, 2017 at 0:53 | comment | added | Stephen |
Save a byte with i as a default function parameter: def f(x,y,i=1): . I think you can save another byte with while10*i but I'm not sure.
|
|
Aug 19, 2017 at 0:49 | history | answered | benzene | CC BY-SA 3.0 |