Timeline for Closest fraction
Current License: CC BY-SA 3.0
27 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jul 17, 2015 at 9:34 | comment | added | user2428118 | I just fixed an error in one of the examples. You may want to correct your submission (even though it's been a year since you submitted it). | |
May 20, 2014 at 20:05 | vote | accept | user2428118 | ||
Jun 7, 2014 at 10:03 | |||||
Apr 29, 2014 at 18:43 | comment | added | skibrianski | Your ungolfed code is broken. | |
Apr 26, 2014 at 7:52 | comment | added | Michael M. |
@nderscore, thanks for the regex reduction but the && trick seems to not work.
|
|
Apr 26, 2014 at 7:47 | history | edited | Michael M. | CC BY-SA 3.0 |
deleted 1 character in body
|
Apr 26, 2014 at 6:13 | comment | added | nderscore |
Save two bytes: m=>{for(e=eval,n=e(m),i=p=0,q=1;++i</\d+$/.exec(m);n*i>f&&(g=f+1,p=f/i>e(p)?f+'/'+i:p,q=g/i<e(q)?g+'/'+i:q))f=n*i|0;return p+' '+q}
|
|
Apr 25, 2014 at 15:04 | history | edited | Michael M. | CC BY-SA 3.0 |
added 338 characters in body
|
Apr 25, 2014 at 14:01 | comment | added | user2428118 | On a second thought, accepting an answer already may discourage people from posting. I'll wait, then. | |
Apr 25, 2014 at 13:52 | comment | added | user2428118 | @isaacg I'll change the accepted answer when a shorter solution becomes available. The JavaScript answer is now shorter, though. | |
Apr 25, 2014 at 13:38 | history | edited | Michael M. | CC BY-SA 3.0 |
deleted 23 characters in body
|
Apr 25, 2014 at 13:37 | comment | added | isaacg | @user2428118: You know, you can allow a couple days to pass before accepting solutions. Also, this solution is no longer the shortest. | |
Apr 25, 2014 at 13:33 | comment | added | Evpok | Why has this answer been accepted so early? | |
Apr 25, 2014 at 13:18 | history | edited | Michael M. | CC BY-SA 3.0 |
added 560 characters in body
|
Apr 25, 2014 at 13:03 | history | edited | Michael M. | CC BY-SA 3.0 |
deleted 1 character in body
|
Apr 25, 2014 at 12:59 | vote | accept | user2428118 | ||
Apr 25, 2014 at 14:01 | |||||
Apr 25, 2014 at 12:55 | history | edited | Michael M. | CC BY-SA 3.0 |
deleted 106 characters in body
|
Apr 25, 2014 at 12:46 | vote | accept | user2428118 | ||
Apr 25, 2014 at 12:52 | |||||
Apr 25, 2014 at 12:42 | history | edited | Michael M. | CC BY-SA 3.0 |
added 136 characters in body
|
Apr 25, 2014 at 12:21 | comment | added | Michael M. | @user2428118 fixed | |
Apr 25, 2014 at 12:21 | history | edited | Michael M. | CC BY-SA 3.0 |
added 9 characters in body
|
Apr 25, 2014 at 12:13 | history | edited | Michael M. | CC BY-SA 3.0 |
deleted 9 characters in body
|
Apr 25, 2014 at 12:12 | comment | added | user2428118 |
Testing with 2/6 gives 1/3 2/5 , however 1/3 is not less than but equal to 2/6 .
|
|
Apr 25, 2014 at 12:07 | history | edited | Michael M. | CC BY-SA 3.0 |
deleted 4 characters in body
|
Apr 25, 2014 at 11:35 | comment | added | John Dvorak |
too... much... eval . EEK
|
|
Apr 25, 2014 at 11:21 | history | edited | Michael M. | CC BY-SA 3.0 |
deleted 4 characters in body
|
Apr 25, 2014 at 11:15 | history | edited | Michael M. | CC BY-SA 3.0 |
added 69 characters in body
|
Apr 25, 2014 at 11:07 | history | answered | Michael M. | CC BY-SA 3.0 |