Sort the cardinal numbers
Maybe a simple challenge.
Start file
Zero One Two Three Four Five Six Seventeen Sixteen Fifteen Fourteen Thirteen Twelve Eleven Ten Nine Eight Seven Eighteen Nineteen Twenty Twenty-one
End file
Zero One Two Three Four Five Six Seven Eight Nine Ten Eleven Twelve Thirteen Fourteen Fifteen Sixteen Seventeen Eighteen Nineteen Twenty Twenty-one
View Diff
8,17d7 < Seventeen < Sixteen < Fifteen < Fourteen < Thirteen < Twelve < Eleven < Ten < Nine < Eight 18a9,18 > Eight > Nine > Ten > Eleven > Twelve > Thirteen > Fourteen > Fifteen > Sixteen > Seventeen
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 92 remaining solutions by signing in and submitting your own entry
#107 Joshua Moyers / joshuamoyers - Score: 18 - 08/03/11 @ 03:37
:8,18g/,/<BS><BS>./m7<CR>ZZ
0 comments
#110 teliotoilet / teliotoilet - Score: 21 - 10/15/11 @ 07:39
:9<CR>qajmmk:m7<CR>`mq9@aZZ
0 comments
#111 Andrés Moya / amoyafoss - Score: 23 - 06/22/12 @ 08:13
:8<BS>9<CR>qajmmk:m7<CR>'mq9@aZZ
0 comments
#112 無ん垢の叫び / john_ababa - Score: 42 - 02/27/12 @ 12:23
7jd9jpd8jpd7jpd6jpd5jpd4jpd3jpd2jpdjpddpZZ
0 comments
#113 Yann Moisan / YannMoisan - Score: 46 - 01/02/13 @ 12:58
8G10ddPup9ddp8ddp7ddp6ddp5ddp4ddp3ddp2ddpddpZZ
0 comments
#114 Jason Axelson / bostonvaulter - Score: 52 - 05/10/11 @ 09:04
:8<CR>d10jPuud9jpd8jpd7jpd6jpd5jpd4jpd3jpd2jpdjpddp:wq<CR>
0 comments
#115 roy blankman / riblankman - Score: 81 - 07/26/11 @ 08:46
7jdd9jp9kkdd8jp8kkdd7jp7kkkjjkdd6jp7kdd5jp6kdd4jp4kkdd3jp4kdd2jp3kddjpkkddp:w<CR>:q<CR>
0 comments
#116 Robert Robotter / robrob12 - Score: 99 - 07/19/11 @ 09:13
18Gdd7Gp18Gdd8Gp18Gdd9Gp18Gdd10Gp18:<Esc><Esc>18Gdd11Go<Esc>up18Gdd12Gp18Gdd13Gp18Gdd14Gp18Gdd15Gp18Gdd16Gp<Esc>:x<CR>
0 comments