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