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
1031918212140
72
1050816422150
73
1012120472168
74
1065115232174
75
1034719052252
76
1027919732252
77
1064516922337
78
1021221722384
79
105923682427
80
1065417922446
81
1014423182462
82
1064018942534
83
1017824352613
84
107825522630
85
1092817442672
86
1029824042702
87
1051922142733
88
1059021842774
89
1036725162883
90
1029326042897
91
10104618682914
92
1035725802937
93
1064423833027
94
1061925093128
95
1041128983309
96
1035630673423
97
10126722003467
98
1052930913620
99
10122224453667
100
1065330223675