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