Timeline for Multiply two numbers without using any numbers
Current License: CC BY-SA 3.0
10 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Oct 26, 2014 at 0:33 | comment | added | N. Virgo | This is pretty amazing. It gets the green tick for now. (I've edited the question to clarify that leading zeroes in the output aren't allowed - sorry!) | |
Oct 26, 2014 at 0:33 | vote | accept | N. Virgo | ||
Oct 29, 2014 at 5:14 | |||||
Oct 25, 2014 at 22:47 | history | edited | Wrzlprmft | CC BY-SA 3.0 |
added 289 characters in body
|
Oct 25, 2014 at 22:38 | history | edited | Wrzlprmft | CC BY-SA 3.0 |
deleted 280 characters in body
|
Oct 25, 2014 at 22:31 | history | edited | Wrzlprmft | CC BY-SA 3.0 |
Switching from function to input().
|
Oct 25, 2014 at 18:47 | history | edited | Wrzlprmft | CC BY-SA 3.0 |
added 12 characters in body
|
Oct 25, 2014 at 18:42 | comment | added | Wrzlprmft |
@Quincunx: Defining S as an argument with a default would not have worked, as it would always be the same list even for different calls of the function and thus not reset to [] . You were right about ["","1"][t in i] , I fixed that. I also added an explanation.
|
|
Oct 25, 2014 at 18:41 | history | edited | Wrzlprmft | CC BY-SA 3.0 |
added 1310 characters in body
|
Oct 25, 2014 at 17:07 | comment | added | Justin |
What is this sorcery! How does it work! Wow. Also, here's another golf you could do: def A(x,y):\n S=[];o="" -> def A(x,y,S=[],o=""): . Also, unfortunately, ["","1"][t in i] isn't allowed; it's using a bool to index, treating it as a number. I think that t in i and"1"or"" should work, though.
|
|
Oct 25, 2014 at 15:19 | history | answered | Wrzlprmft | CC BY-SA 3.0 |