Making 3 line function a one liner.
Simple challenge for frequent action while programming.
Start file
Pixel *operator[](Position p) {
return &pixels[p.getc()][p.getr()];
}
End file
Pixel *operator[](Position p) { return &pixels[p.getc()][p.getr()]; }
1,3c1
< Pixel *operator[](Position p) {
< return &pixels[p.getc()][p.getr()];
< }
---
> Pixel *operator[](Position p) { return &pixels[p.getc()][p.getr()]; }
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
0 remaining solutions by
signing in and submitting your own entry
#1
r4d1um / @r4d1um -
Score: 4 -
12/13/20 @ 15:06
3JZZ
0 comments
#2
Jon Krause / @jkrause314 -
Score: 4 -
12/13/20 @ 16:44
9JZZ
0 comments
#3
Smylers / @Smylers2 -
Score: 4 -
12/13/20 @ 17:28
JJZZ
0 comments
#4
Roger Stoltz / @rogsto1 -
Score: 4 -
12/13/20 @ 22:02
3JZZ
0 comments
#5
Vinícius Hoyer / @viniciushoyer -
Score: 4 -
12/14/20 @ 13:22
3JZZ
0 comments
#6
Dax / @zacoxi -
Score: 4 -
12/15/20 @ 02:20
3JZZ
0 comments
#7
Ryan Way / @RyanWay16 -
Score: 4 -
12/15/20 @ 05:17
3JZZ
0 comments
#8
Miki Tebeka / @tebeka -
Score: 4 -
12/16/20 @ 07:08
3JZZ
0 comments
#9
John Braxler / @braxler -
Score: 4 -
12/17/20 @ 19:05
JJZZ
1 comment
#10
RaylanFox / @RaylanFox -
Score: 4 -
12/19/20 @ 17:34
3JZZ
0 comments
#11
Filipe Brandenburger / @filbranden -
Score: 4 -
12/21/20 @ 05:14
7JZZ
0 comments
#12
hepebexè / @hepebexe -
Score: 4 -
01/09/21 @ 21:21
JJZZ
0 comments
#13
Tinko Minko / @tandikula -
Score: 4 -
01/18/21 @ 10:45
3JZZ
0 comments
#14
A A A / @37fatos -
Score: 4 -
02/01/21 @ 00:36
3JZZ
0 comments
#15
Jung Yeon Park / @park_jungy -
Score: 4 -
02/16/21 @ 23:17
3JZZ
0 comments
#17
김범준 / @kmbmjn -
Score: 4 -
03/10/21 @ 08:02
3JZZ
0 comments
#19
Tuure / @tuure_p -
Score: 4 -
03/22/21 @ 02:47
3JZZ
0 comments
#20
AAbraxas / @AAbraxas1 -
Score: 4 -
03/22/21 @ 19:46
JJZZ
0 comments
#21
Eric Söderström / @eksoderstrom -
Score: 4 -
03/25/21 @ 16:02
3JZZ
0 comments
21 active golfers, 22 entries
Leaderboard (lowest score wins):
12/13/2020 at 03:06PM
12/13/2020 at 04:44PM
12/13/2020 at 05:28PM
12/13/2020 at 10:02PM
12/14/2020 at 01:22PM
12/15/2020 at 02:20AM
12/15/2020 at 05:17AM
12/16/2020 at 07:08AM
12/17/2020 at 07:05PM
12/19/2020 at 05:34PM
12/21/2020 at 05:14AM
01/09/2021 at 09:21PM
01/18/2021 at 10:45AM
02/01/2021 at 12:36AM
02/16/2021 at 11:17PM
02/23/2021 at 04:40AM
03/10/2021 at 08:02AM
03/21/2021 at 06:45PM
03/22/2021 at 02:47AM
03/22/2021 at 07:46PM
03/25/2021 at 04:02PM