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
10243269512
2
10259277536
3
10317329646
4
10249413662
5
10335346681
6
10332367699
7
10374378752
8
10376388764
9
10384406790
10
10398407805
11
10404409813
12
10387437824
13
10334539873
14
10454461915
15
102888031091
16
104067161122
17
103228151137
18
103877651152
19
102729211193
20
102809431223
21
103139251238
22
102609891249
23
103988651263
24
103019731274
25
1020110841285
26
1025910371296
27
1023110721303
28
103459771322
29
104868391325
30
103519961347
31
1027310911364
32
1025711151372
33
1040310161419
34
1026211851447
35
1018913001489
36
1042110691490
37
1015414291583
38
1024313421585
39
1037012331603
40
1033113051636
41
1032613301656
42
1044712121659
43
1015115761727
44
1031614141730
45
1050112501751
46
1049013121802
47
1051012941804
48
1035514531808
49
1049013291819
50
1011417131827
51
1035214761828
52
1055912911850
53
1049114931984
54
1038616001986
55
1019418612055
56
1016018982058
57
1029018062096
58
1022918732102
59
1041416952109
60
1024918612110
61
1049816352133
62
1031918212140
63
1050816422150
64
1012120472168
65
1065115232174
66
1034719052252
67
1027919732252
68
105923682427
69
1065417922446
70
1064018942534
71
1017824352613
72
107825522630
73
1092817442672
74
1051922142733
75
1059021842774
76
1036725162883
77
1029326042897
78
10104618682914
79
1035725802937
80
1064423833027
81
1041128983309
82
1035630673423
83
10126722003467
84
1052930913620
85
10122224453667
86
1065330223675
87
1074230783820
88
1053633693905
89
1055235674119
90
1057535754150
91
1028839744262
92
1093733334270
93
1054337284271
94
1071336224335
95
10121431724386
96
10110434514555
97
10114435494693
98
1090238274729
99
10131734544771
100
10135934614820