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
102888031091
16
104067161122
17
103228151137
18
103048381142
19
103877651152
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
1027310911364
34
1025711151372
35
1037310221395
36
1029411151409
37
1040310161419
38
1026211851447
39
1018913001489
40
1042110691490
41
1034212381580
42
1015414291583
43
1024313421585
44
1037012331603
45
1052111131634
46
1033113051636
47
1032613301656
48
1044712121659
49
1015115761727
50
1031614141730
51
1050112501751
52
1049013121802
53
1051012941804
54
1035514531808
55
1049013291819
56
1011417131827
57
1035214761828
58
1055912911850
59
1049114931984
60
1038616001986
61
1019418612055
62
1016018982058
63
1029018062096
64
1022918732102
65
1041416952109
66
1024918612110
67
1049816352133
68
1031918212140
69
1050816422150
70
1012120472168
71
1065115232174
72
1034719052252
73
1027919732252
74
1064516922337
75
105923682427
76
1065417922446
77
1014423182462
78
1064018942534
79
1017824352613
80
107825522630
81
1092817442672
82
1029824042702
83
1051922142733
84
1059021842774
85
1036725162883
86
1029326042897
87
10104618682914
88
1035725802937
89
1064423833027
90
1061925093128
91
1041128983309
92
1035630673423
93
10126722003467
94
1052930913620
95
10122224453667
96
1065330223675
97
1074230783820
98
1053633693905
99
1055235674119
100
1057535754150