swap number pairs
Swap the numbers in a bunch of 2-element arrays.
Start file
[2, 1], [5, 4] [6, 3] [7, 4] [8, 2], [12, 11]
End file
[1, 2], [4, 5] [3, 6] [4, 7] [2, 8], [11, 12]
View Diff
1,4c1,4 < [2, 1], [5, 4] < [6, 3] < [7, 4] < [8, 2], [12, 11] --- > [1, 2], [4, 5] > [3, 6] > [4, 7] > [2, 8], [11, 12]
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 381 remaining solutions by signing in and submitting your own entry
#382 ahappyston1 / @ahappyston1 - Score: 120 - 09/27/24 @ 10:32
<Right><Right><Left><Left><Left><Esc><Right><Down><Right><Up><Down><Left><Up><Right><BS><Right>i<BS><BS><C-Z><C-Z><BS><BS><BS><BS><BS>[2<Right><Left><BS>1<Right><Right><Right><BS>2<Right><Right><Right><Right><Right><BS>4<Right><Right><Right><Right><Left><Del>5<C-Z><BS><BS><BS>5]<Down><Left><Left><Left><Left><BS>4<BS>3<Right><Right><Right><BS>6<Down><Left><Left><Left><BS>4<Right><Right><Right><BS>7<Down><Left><Left><Left><BS>2<Right><Right><Right><BS>8<Right><Right><Right><Right><Right><Right><BS>1<Right><Right><Right><Right><BS>2<Esc>":<BS><BS><BS><BS><BS><PageDown>:wq<CR>
0 comments