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
10360586946
16
104495881037
17
103677201087
18
102888031091
19
103367611097
20
103267871113
21
104067161122
22
103228151137
23
102848671151
24
102729211193
25
102809431223
26
103139251238
27
102609891249
28
103988651263
29
103019731274
30
104338451278
31
1020110841285
32
1025910371296
33
1023110721303
34
103459771322
35
104868391325
36
103519961347
37
1020211521354
38
1027310911364
39
1025711151372
40
1037310221395
41
1029411151409
42
1040310161419
43
1026211851447
44
1018913001489
45
1042110691490
46
1025912481507
47
1049610441540
48
1015414291583
49
1024313421585
50
1037012331603
51
1052111131634
52
1033113051636
53
1032613301656
54
1044712121659
55
1048212281710
56
1015115761727
57
1031614141730
58
1028114601741
59
1050112501751
60
1049013121802
61
1051012941804
62
1035514531808
63
1049013291819
64
1011417131827
65
1035214761828
66
1055912911850
67
1049114931984
68
1038616001986
69
1019418612055
70
1016018982058
71
1029018062096
72
1022918732102
73
1041416952109
74
1024918612110
75
1049816352133
76
1031918212140
77
1050816422150
78
1012120472168
79
1065115232174
80
1034719052252
81
1027919732252
82
1064516922337
83
1021221722384
84
105923682427
85
1065417922446
86
1014423182462
87
1064018942534
88
1017824352613
89
107825522630
90
1092817442672
91
1029824042702
92
1051922142733
93
1059021842774
94
1036725162883
95
1029326042897
96
10104618682914
97
1035725802937
98
1064423833027
99
1061925093128
100
1041128983309