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
10243269512
3
10239273512
4
10259277536
5
10288307595
6
10317329646
7
10249413662
8
10335346681
9
10332367699
10
10374378752
11
10376388764
12
10384406790
13
10398407805
14
10404409813
15
10387437824
16
10408417825
17
10360586946
18
104495881037
19
103677201087
20
102888031091
21
103367611097
22
103267871113
23
104067161122
24
103228151137
25
102848671151
26
102729211193
27
102809431223
28
103139251238
29
102609891249
30
103988651263
31
103019731274
32
104338451278
33
1020110841285
34
1025910371296
35
1023110721303
36
103459771322
37
104868391325
38
103519961347
39
1020211521354
40
1027310911364
41
1025711151372
42
1037310221395
43
1029411151409
44
1040310161419
45
1026211851447
46
1018913001489
47
1042110691490
48
1025912481507
49
1049610441540
50
1015414291583
51
1024313421585
52
1037012331603
53
1052111131634
54
1033113051636
55
1032613301656
56
1044712121659
57
1046012371697
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