Skip to main content

Timeline for Find the Pisano Period

Current License: CC BY-SA 3.0

15 events
when toggle format what by license comment
S Oct 25, 2012 at 12:55 history suggested beary605 CC BY-SA 3.0
golfed 8 characters :) `a,b=0,1 -> a=k=0 b=1`, `if s[:k]==s[k:]:break` removed and implemented into while loop
Oct 25, 2012 at 0:47 review Suggested edits
S Oct 25, 2012 at 12:55
S Oct 22, 2012 at 0:45 history suggested Strigoides CC BY-SA 3.0
Made a quick change that avoids testing for an empty list that would have been annoying to explain in a comment
Oct 21, 2012 at 23:58 comment added Strigoides I went ahead and made an edit that avoids having to check for an empty list, since it would have been difficult to explain in a comment
Oct 21, 2012 at 23:57 review Suggested edits
S Oct 22, 2012 at 0:45
Oct 21, 2012 at 23:33 comment added ESultanik @Strigoides: Thanks! I've updated the code.
Oct 21, 2012 at 23:33 history edited ESultanik CC BY-SA 3.0
deleted 20 characters in body
Oct 21, 2012 at 23:24 comment added Strigoides if k>0 and s[0:k]==s[k:]:break can be changed to if s and s[:k]==s[k:]:break. You can also cut down significantly by removing the iterator, changing the for loop to while 1:, and performing a,b=a,a+b at the end of the while loop.
Oct 21, 2012 at 19:53 comment added DavidC I use a routine furnished by Wolfram Research. It counts necessary white space, I think.
Oct 21, 2012 at 19:28 comment added ESultanik @David: Are you counting whitespace? I just double-checked (by catting to wc -c and I get the same number.
Oct 21, 2012 at 19:01 comment added DavidC You may want to count your chars again. My count of your response is below your count of your response.
Oct 21, 2012 at 16:00 comment added ESultanik Thanks, beary605, for the additional golfing!
S Oct 21, 2012 at 15:59 history suggested beary605 CC BY-SA 3.0
golfed 56 characters :) i would use comments but the program is still big
Oct 21, 2012 at 15:39 review Suggested edits
S Oct 21, 2012 at 15:59
Oct 21, 2012 at 14:04 history answered ESultanik CC BY-SA 3.0