Back to the roots
Johnny has a file with more integers. He wants to change each number with its square root. Can you help him?
Start file
13 81 1024 72 144 51 90 2 77 25 625 4
End file
3.605551 9.0 32.0 8.485281 12.0 7.141428 9.486833 1.414214 8.774964 5.0 25.0 2.0
View Diff
1,12c1,12 < 13 < 81 < 1024 < 72 < 144 < 51 < 90 < 2 < 77 < 25 < 625 < 4 --- > 3.605551 > 9.0 > 32.0 > 8.485281 > 12.0 > 7.141428 > 9.486833 > 1.414214 > 8.774964 > 5.0 > 25.0 > 2.0
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 37 remaining solutions by signing in and submitting your own entry
#38 Mike Harris / @MikeMJHarris - Score: 31 - 12/02/17 @ 19:25
qqcw<C-R>=sqrt(<C-R>")<CR>+<BS><Esc>+11@qq111@qZZ
0 comments