A simple change
Just change the numbers in the most efficient way ...
Start file
1024 2048 3072 4096 5120
6144 7168 8192 9216
End file
2048 3072 4096 5120 6144
7168 8192 9216 10240
View Diff
1,2c1,2
< 1024 2048 3072 4096 5120
< 6144 7168 8192 9216
---
> 2048 3072 4096 5120 6144
> 7168 8192 9216 10240
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 192 remaining solutions by signing in and submitting your own entry
#193 Ben Ogorek / @baogorek - Score: 308 - 04/11/13 @ 17:29
<C-A><C-A><C-X><C-X>:function mut<BS>ltByTwo (x)<CR><BS><BS>:MultBy<BS><BS><BS><BS><BS><BS><BS><BS><BS>:Function<BS><BS><BS><BS><BS><BS><BS><BS>function MultByTwo (x)<CR>return 2*x<CR><BS>endfunction<CR>:Muy<BS>ltByTwo<CR>:"<BS>call MultByTwo<CR><Up>:call MultByTwo(1025<BS>4)<CR><CR>i2048<Esc>x<Left><Left><Left>xxxxxxxx<Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right> hlkllllllllllllllllllllli <BS>;<BS><Esc>wbei <BS><Esc>eo<BS> 6144<Esc>jhhhhhhhhhhhhhhhhhhxxxxxllllllllllllllllo<BS> 10240<Esc>:x<CR>
0 comments