Conway sequence
Generate the the first fifteen numbers. See here for more information: http://en.wikipedia.org/wiki/Look-and-say_sequence
Start file
submatch(
End file
1
11
21
1211
111221
312211
13112221
1113213211
31131211131221
13211311123113112211
11131221133112132113212221
3113112221232112111312211312113211
1321132132111213122112311311222113111221131221
11131221131211131231121113112221121321132132211331222113112211
311311222113111231131112132112311321322112111312211312111322212311322113212221
View Diff
1c1,15
< submatch(
---
> 1
> 11
> 21
> 1211
> 111221
> 312211
> 13112221
> 1113213211
> 31131211131221
> 13211311123113112211
> 11131221133112132113212221
> 3113112221232112111312211312113211
> 1321132132111213122112311311222113111221131221
> 11131221131211131231121113112221121321132132211331222113112211
> 311311222113111231131112132112311321322112111312211312111322212311322113212221
Solutions
The best way to learn is to practice. Below, you will find some of the solutions other golfers have entered. To unlock higher ranked solutions, submit your own entry which does as well or better than the solutions you can currently see - climb the ladder!
Check out these helpful resources to improve your Vim skills... Game on.
Unlock 19 remaining solutions by signing in and submitting your own entry
#20 ShookerAndBeta / @Shooker2012 - Score: 64 - 06/02/22 @ 09:33
C1<Esc>qqYp:s/\v(.)\1*/\=strlen(submatch(0)))<BS>.submatch(1)/g<CR>q13@qZZ
0 comments