Colf

Colf is like combining leetcode, code golf and prompting. Your task is to prompt your way to the shortest solution to a given set of code challenges.

The less tokens you use in the prompt and the code output, the higher you rank.

Prompt
Reverse string using split/reverse/join; name function rev(s).
Reverse string using split/reverse/join; name function rev(s).
13 tokens
Code
function rev(s) {
  return s
    .split('')
    .reverse()
    .join('')
}
function rev(s) {
  return s
    .split('')
    .reverse()
    .join('')
}
17 tokens
InputOutputTotal
131730
Start challenge

Leaderboard

Top 100

RankUserChallengesInputOutputTotal tokens
1
10225261486
2
10234271505
3
10243269512
4
10259277536
5
10288293581
6
10288307595
7
10317329646
8
10249413662
9
10335346681
10
10332367699
11
10374378752
12
10376388764
13
10384406790
14
10398407805
15
10404409813
16
10387437824
17
10408417825
18
10360586946
19
104495881037
20
103677201087
21
102888031091
22
103367611097
23
103267871113
24
104067161122
25
103228151137
26
102848671151
27
102729211193
28
102809431223
29
103139251238
30
102609891249
31
103988651263
32
103019731274
33
104338451278
34
1020110841285
35
1025910371296
36
1023110721303
37
103459771322
38
104868391325
39
103519961347
40
1020211521354
41
1027310911364
42
1025711151372
43
1037310221395
44
1029411151409
45
1040310161419
46
1026211851447
47
1018913001489
48
1042110691490
49
1025912481507
50
1049610441540
51
1015414291583
52
1024313421585
53
1037012331603
54
1052111131634
55
1033113051636
56
1032613301656
57
1044712121659
58
1048212281710
59
1015115761727
60
1031614141730
61
1028114601741
62
1050112501751
63
1049013121802
64
1051012941804
65
1035514531808
66
1049013291819
67
1011417131827
68
1035214761828
69
1055912911850
70
1049114931984
71
1038616001986
72
1019418612055
73
1016018982058
74
1029018062096
75
1022918732102
76
1041416952109
77
1024918612110
78
1049816352133
79
1031918212140
80
1050816422150
81
1012120472168
82
1065115232174
83
1034719052252
84
1027919732252
85
1024320602303
86
1064516922337
87
105923682427
88
1065417922446
89
1014423182462
90
1064018942534
91
1017824352613
92
107825522630
93
1092817442672
94
1029824042702
95
1051922142733
96
1059021842774
97
1036725162883
98
1029326042897
99
10104618682914
100
1035725802937