Permutations N=4
Could use backtracking or other algorithm to generate sorted numbers. Second chance !
Start file
1234
End file
1234
1243
1324
1342
1423
1432
2134
2143
2314
2341
2413
2431
3124
3142
3214
3241
3412
3421
4123
4132
4213
4231
4312
4321
View Diff
1a2,24
> 1243
> 1324
> 1342
> 1423
> 1432
> 2134
> 2143
> 2314
> 2341
> 2413
> 2431
> 3124
> 3142
> 3214
> 3241
> 3412
> 3421
> 4123
> 4132
> 4213
> 4231
> 4312
> 4321
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 18 remaining solutions by signing in and submitting your own entry
#19 Tyler / @tylerbindon - Score: 82 - 11/17/13 @ 03:34
YP$xPyjPl<C-V>jxpyjP$<C-V>jxPVGYPl<C-V>5j$:s/2/1<CR><C-V>{r2Pl<C-V>5j$:s/3/1<CR><C-V>{r3Pl<C-V>5j$:s/4/1<CR><C-V>{r4:sor|x<CR>
0 comments
Created by: @zulolosi Tweet
19 active golfers, 61 entries
Leaderboard (lowest score wins):
#5 - πππππππ πππ’πππππ / @TitouanT_
02/19/2019 at 05:51PM