Skip to main content

Timeline for answer to Slap sort counter by ShadowRanger

Current License: CC BY-SA 4.0

Post Revisions

9 events
when toggle format what by license comment
Mar 26 at 0:00 history edited ShadowRanger CC BY-SA 4.0
Incorporate l4m2 improvement
Mar 25 at 23:47 history edited ShadowRanger CC BY-SA 4.0
added 1 character in body
Mar 24 at 21:40 comment added l4m2 Python, 74 bytes: f=lambda a,y=0:any(b:=[y>(y:=x)for x in a])and-~f(a+[a.pop(b.index(1)-1)])
Mar 24 at 15:25 history edited ShadowRanger CC BY-SA 4.0
Drop from 84 to 76 with naffetS suggestions
Mar 24 at 15:15 comment added ShadowRanger Ah, man, you get out of practice for a few months and suddenly forget to use False as 0 and avoid or 0 entirely. And the -~ trick to drop a space. The abuse of the walrus is new to me, though, and delightful!
Mar 24 at 3:03 comment added naffetS alternative 76
Mar 24 at 2:59 comment added naffetS 76
Mar 23 at 22:40 comment added Shaggy 79 bytes?
Mar 23 at 16:19 history answered ShadowRanger CC BY-SA 4.0