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