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
10345354699
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
1048212281710
57
1015115761727
58
1031614141730
59
1028114601741
60
1050112501751
61
1049013121802
62
1051012941804
63
1035514531808
64
1049013291819
65
1011417131827
66
1035214761828
67
1055912911850
68
1049114931984
69
1038616001986
70
1019418612055
71
1016018982058
72
1029018062096
73
1022918732102
74
1041416952109
75
1024918612110
76
1049816352133
77
1031918212140
78
1050816422150
79
1012120472168
80
1065115232174
81
1034719052252
82
1027919732252
83
1064516922337
84
1021221722384
85
105923682427
86
1065417922446
87
1014423182462
88
1064018942534
89
1017824352613
90
107825522630
91
1092817442672
92
1029824042702
93
1051922142733
94
1059021842774
95
1036725162883
96
1029326042897
97
10104618682914
98
1035725802937
99
1064423833027
100
1061925093128