|
Jan 28 |
awarded | Yearling |
|
Feb 4 |
comment |
Calculate 500 digits of pi To check if your digits are correct: eveandersson.com/pi/digits |
|
Feb 4 |
answered | Chris Pine's “Deaf Grandma” |
|
Feb 3 |
awarded | Beta |
|
Feb 3 |
answered | Forecast the weather |
|
Feb 2 |
comment |
IPv4 Integer Conversion Function You can remove the spaces around your first '='. However, your main problem is int overflow ;). Remember, an IP address takes up 4 full bytes. |
|
Feb 2 |
comment |
Calculate ISBN-13 check digit Exactly the approach I took in my C# answer. Seems PHP is ~9 characters more efficient! |
|
Feb 2 |
revised |
Calculate ISBN-13 check digit deleted 88 characters in body |
|
Feb 1 |
answered | Calculate ISBN-13 check digit |
|
Feb 1 |
comment |
The Luhn algorithm for verifying credit card numbers, etc. It's a good idea, and an interesting approach, but it doesn't appear to work. At least not with my few tests. It looks like the "i" in your first lambda is supposed to be the index of the character in the string. Does that work as it should? If so, why do you reverse the string only to then modify it based on index position? Seems a bit redundant, no? |
|
Jan 31 |
awarded | Commentator |
|
Jan 31 |
comment |
Shortest Floor Function Why <=x-1? would <x not be exactly the same thing, but 3 characters shorter? |
|
Jan 31 |
answered | Shortest Floor Function |
|
Jan 31 |
comment |
Shortest Floor Function x - x % 1 gives -3 for -3.1234, surely, when the expected answer is -4 |
|
Jan 31 |
answered | Tips for code-golfing in C# |
|
Jan 31 |
comment |
Tips for code-golfing in C# ditto with variable names |
|
Jan 28 |
comment |
Sum of primes between given range I like how short this is, but I wonder how inefficient it would be when calculating up to 10^8! |
|
Jan 28 |
revised |
99 Bottles Of Beer added 20 characters in body |
|
Jan 28 |
awarded | Critic |
|
Jan 28 |
comment |
99 Bottles Of Beer @Daniel Yes, and it implies that he thinks everything in his code is necessary. If meant as a joke, it shouldn't be voted up this much. It's not short, creative, efficient, or even slightly clever. |