Skip to main content

Timeline for Look and say sequence

Current License: CC BY-SA 3.0

4 events
when toggle format what by license comment
Jun 25, 2015 at 18:10 comment added JohnE Also, the k4 solution you included is a slight improvement, but on Kona/K2 it requires tweaks- _x needs to be altered to _ x to avoid confusing "cut x" with a reserved variable called _x, and "cut" needs an initial 0 in its index list. Works just fine in k5! Combining your ideas with mine, you can get a 36 character k5 solution, but k5 is too new to be an official answer.
Jun 25, 2015 at 18:03 comment added JohnE It is k2. It also works correctly in Kona. _ic is a builtin for converting characters into integers. In k5 it would be even easier, since characters will naturally coerce to numbers- you could just do -/"ta".
Jun 25, 2015 at 16:20 comment added tmartin Is this k5? I can't get it to run in k4, ic is undefined There's a k4 solution for 29 bytes that includes numbers 19{,/{(#x),*x}'(&~~':x)_x}\,1
Jun 24, 2015 at 22:23 history answered JohnE CC BY-SA 3.0