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