Letters challenge
Clash Royale CLAN TAG#URR8PPP
up vote
1
down vote
favorite
Using the word “conemon†print each character 2 times more than the last. The first letter, “câ€Â, should be printed 10 times, the second 12 and so on. Each repeated-letter-string should be printed on a new line.
So the end-result becomes:
cccccccccc
oooooooooooo
nnnnnnnnnnnnnn
eeeeeeeeeeeeeeee
mmmmmmmmmmmmmmmmmm
oooooooooooooooooooo
nnnnnnnnnnnnnnnnnnnnnn
code-golf string kolmogorov-complexity
New contributor
Monolica is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |Â
up vote
1
down vote
favorite
Using the word “conemon†print each character 2 times more than the last. The first letter, “câ€Â, should be printed 10 times, the second 12 and so on. Each repeated-letter-string should be printed on a new line.
So the end-result becomes:
cccccccccc
oooooooooooo
nnnnnnnnnnnnnn
eeeeeeeeeeeeeeee
mmmmmmmmmmmmmmmmmm
oooooooooooooooooooo
nnnnnnnnnnnnnnnnnnnnnn
code-golf string kolmogorov-complexity
New contributor
Monolica is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Cccccccccc Oooooooooooo Nnnnnnnnnnnnnn And so on the solution should be displaced like that. There should be new line after every character is printed n times
– Monolica
1 hour ago
1
Welcome to PPCG! I have update the challenge text to reflect your comment above (specifications should be in the post not in the comments). I also fixed up the grammar a little. Feel free to edit it more.
– Jonathan Allan
1 hour ago
I imagine this is meant to be code-golf?
– Jonathan Allan
57 mins ago
The less characters the better.
– Monolica
48 mins ago
add a comment |Â
up vote
1
down vote
favorite
up vote
1
down vote
favorite
Using the word “conemon†print each character 2 times more than the last. The first letter, “câ€Â, should be printed 10 times, the second 12 and so on. Each repeated-letter-string should be printed on a new line.
So the end-result becomes:
cccccccccc
oooooooooooo
nnnnnnnnnnnnnn
eeeeeeeeeeeeeeee
mmmmmmmmmmmmmmmmmm
oooooooooooooooooooo
nnnnnnnnnnnnnnnnnnnnnn
code-golf string kolmogorov-complexity
New contributor
Monolica is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Using the word “conemon†print each character 2 times more than the last. The first letter, “câ€Â, should be printed 10 times, the second 12 and so on. Each repeated-letter-string should be printed on a new line.
So the end-result becomes:
cccccccccc
oooooooooooo
nnnnnnnnnnnnnn
eeeeeeeeeeeeeeee
mmmmmmmmmmmmmmmmmm
oooooooooooooooooooo
nnnnnnnnnnnnnnnnnnnnnn
code-golf string kolmogorov-complexity
code-golf string kolmogorov-complexity
New contributor
Monolica is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Monolica is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
edited 45 mins ago


Kevin Cruijssen
30.8k553168
30.8k553168
New contributor
Monolica is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
asked 1 hour ago
Monolica
113
113
New contributor
Monolica is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Monolica is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Monolica is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Cccccccccc Oooooooooooo Nnnnnnnnnnnnnn And so on the solution should be displaced like that. There should be new line after every character is printed n times
– Monolica
1 hour ago
1
Welcome to PPCG! I have update the challenge text to reflect your comment above (specifications should be in the post not in the comments). I also fixed up the grammar a little. Feel free to edit it more.
– Jonathan Allan
1 hour ago
I imagine this is meant to be code-golf?
– Jonathan Allan
57 mins ago
The less characters the better.
– Monolica
48 mins ago
add a comment |Â
Cccccccccc Oooooooooooo Nnnnnnnnnnnnnn And so on the solution should be displaced like that. There should be new line after every character is printed n times
– Monolica
1 hour ago
1
Welcome to PPCG! I have update the challenge text to reflect your comment above (specifications should be in the post not in the comments). I also fixed up the grammar a little. Feel free to edit it more.
– Jonathan Allan
1 hour ago
I imagine this is meant to be code-golf?
– Jonathan Allan
57 mins ago
The less characters the better.
– Monolica
48 mins ago
Cccccccccc Oooooooooooo Nnnnnnnnnnnnnn And so on the solution should be displaced like that. There should be new line after every character is printed n times
– Monolica
1 hour ago
Cccccccccc Oooooooooooo Nnnnnnnnnnnnnn And so on the solution should be displaced like that. There should be new line after every character is printed n times
– Monolica
1 hour ago
1
1
Welcome to PPCG! I have update the challenge text to reflect your comment above (specifications should be in the post not in the comments). I also fixed up the grammar a little. Feel free to edit it more.
– Jonathan Allan
1 hour ago
Welcome to PPCG! I have update the challenge text to reflect your comment above (specifications should be in the post not in the comments). I also fixed up the grammar a little. Feel free to edit it more.
– Jonathan Allan
1 hour ago
I imagine this is meant to be code-golf?
– Jonathan Allan
57 mins ago
I imagine this is meant to be code-golf?
– Jonathan Allan
57 mins ago
The less characters the better.
– Monolica
48 mins ago
The less characters the better.
– Monolica
48 mins ago
add a comment |Â
10 Answers
10
active
oldest
votes
up vote
0
down vote
accepted
Python 2, 36 bytes
i=8
for c in'conemon':i+=2;print c*i
Try it online!
cccccccccc oooooooooooo nnnnnnnnnnnnnn And so on the solution should be displayed like above
– Monolica
1 hour ago
@Monolica Fixed
– TFeld
1 hour ago
who would be able to improve this python code to a shorter code. i=8 for c in'conemon':i+=2;print c*i
– Monolica
9 mins ago
add a comment |Â
up vote
2
down vote
05AB1E, 16 14 bytes
.•Ω‡h₅•SÄ·8+×»
-2 bytes thanks to @Emigna.
Try it online.
Explanation:
.•Ω‡h₅• # Push "conemon"
S # Convert it to a list of character: ["c","o","n","e","m","o","n"]
Ä # Push a list in the range [1, length]: [1,2,3,4,5,6,7]
· # Double each: [2,4,6,8,10,12,14]
8+ # Add 8: [10,12,14,16,18,20,22]
× # Repeat the characters that many times
» # Join the list by newlines (and output implicitly)
See this 05AB1E tip of mine (section How to compress strings not part of the dictionary?) to understand why .•Ω‡h₅•
is "conemon"
.
1
.•Ω‡h₅•SÄ·8+×»
for 14.
– Emigna
44 mins ago
@Emigna I was just looking for a way to remove that map. Smart way withÄ·
, thanks!
– Kevin Cruijssen
39 mins ago
add a comment |Â
up vote
0
down vote
R, 50 bytes
write(strrep(el(strsplit("conemon","")),5:11*2),1)
add a comment |Â
up vote
0
down vote
Red, 53 bytes
n: 8 foreach c"conemon"[loop n: n + 2[prin c]print""]
Try it online!
add a comment |Â
up vote
0
down vote
Java 11, 78 bytes
v->int i=8;for(var c:"codemon".split(""))System.out.println(c.repeat(i+=2));
Try it online. (NOTE: String.repeat(int)
is emulated as repeat(String,int)
for the same byte-count, because Java 11 isn't on TIO yet.)
Explanation:
v-> // Method with empty unused parameter and no return-type
int i=8; // Integer `i`, starting at 8
for(var c:"codemon".split(""))
// Loop over the characters (as Strings) of "codemon"
System.out.println( // Print with trailing new-line:
c.repeat( // The current character repeated
i+=2)); // `i` amount of times, after we've first increased `i` by 2
add a comment |Â
up vote
0
down vote
MathGolf, 17 bytes
"conemon"▒{ï5+∞*p
Try it online!
I don't really know how string compression works in MathGolf, so this could be a bit shorter.
add a comment |Â
up vote
0
down vote
J, 25 bytes
echo'conemon'#"0~10+2*i.7
Try it online!
Note: There are trailing spaces on all lines except the last one.
add a comment |Â
up vote
0
down vote
Perl 6, 36 34 bytes
-2 bytes thanks to nwellnhof
("conemon".comb Zx(5..*X*2))>>.say
Try it online!
-2 bytes
– nwellnhof
7 mins ago
add a comment |Â
up vote
0
down vote
Jelly, 14 bytes
“¢nṣkœ+»J+4×ḤY
A full program which prints the output required.
Try it online!
How?
“¢nṣkœ+»J+4×ḤY - Main Link: no arguments
“¢nṣkœ+» - compressed string as a list of characters -> ['c','o','n','e','m','o','n']
- (...due to this being a leading constant this is now the argument too)
J - range of length -> [ 1, 2, 3, 4, 5, 6, 7]
4 - literal four
+ - add (vectorises) -> [ 5, 6, 7, 8, 9,10,11]
× - multiply by the argument -> ['ccccc','oooooo',...,'nnnnnnnnnnn']
Ḥ - multiply by 2 (vectorises) -> ['cccccccccc','oooooooooooo',...,'nnnnnnnnnnnnnnnnnnnnnn']
Y - join with newline characters
- implicit print
Oh haha - hang over from a different attempt - will fix... Thanks!
– Jonathan Allan
17 mins ago
Fixed - amazing how much I had to change it to keep it 14 bytes :D
– Jonathan Allan
13 mins ago
I guess there's no literal for 11 in Jelly?
– Jo King
11 mins ago
There is11
:)
– Jonathan Allan
9 mins ago
add a comment |Â
up vote
0
down vote
Retina, 29 bytes
K`conemon
L$`.
$.(5*_$`)*2*$&
Try it online! Explanation:
K`conemon
Initialise the buffer with the text.
L$`.
Loop over each character and output each substituion on its own line.
$.(5*_$`)*2*$&
Repeat the match (5 + index) * 2 times.
add a comment |Â
10 Answers
10
active
oldest
votes
10 Answers
10
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
accepted
Python 2, 36 bytes
i=8
for c in'conemon':i+=2;print c*i
Try it online!
cccccccccc oooooooooooo nnnnnnnnnnnnnn And so on the solution should be displayed like above
– Monolica
1 hour ago
@Monolica Fixed
– TFeld
1 hour ago
who would be able to improve this python code to a shorter code. i=8 for c in'conemon':i+=2;print c*i
– Monolica
9 mins ago
add a comment |Â
up vote
0
down vote
accepted
Python 2, 36 bytes
i=8
for c in'conemon':i+=2;print c*i
Try it online!
cccccccccc oooooooooooo nnnnnnnnnnnnnn And so on the solution should be displayed like above
– Monolica
1 hour ago
@Monolica Fixed
– TFeld
1 hour ago
who would be able to improve this python code to a shorter code. i=8 for c in'conemon':i+=2;print c*i
– Monolica
9 mins ago
add a comment |Â
up vote
0
down vote
accepted
up vote
0
down vote
accepted
Python 2, 36 bytes
i=8
for c in'conemon':i+=2;print c*i
Try it online!
Python 2, 36 bytes
i=8
for c in'conemon':i+=2;print c*i
Try it online!
edited 1 hour ago
answered 1 hour ago


TFeld
11.9k2833
11.9k2833
cccccccccc oooooooooooo nnnnnnnnnnnnnn And so on the solution should be displayed like above
– Monolica
1 hour ago
@Monolica Fixed
– TFeld
1 hour ago
who would be able to improve this python code to a shorter code. i=8 for c in'conemon':i+=2;print c*i
– Monolica
9 mins ago
add a comment |Â
cccccccccc oooooooooooo nnnnnnnnnnnnnn And so on the solution should be displayed like above
– Monolica
1 hour ago
@Monolica Fixed
– TFeld
1 hour ago
who would be able to improve this python code to a shorter code. i=8 for c in'conemon':i+=2;print c*i
– Monolica
9 mins ago
cccccccccc oooooooooooo nnnnnnnnnnnnnn And so on the solution should be displayed like above
– Monolica
1 hour ago
cccccccccc oooooooooooo nnnnnnnnnnnnnn And so on the solution should be displayed like above
– Monolica
1 hour ago
@Monolica Fixed
– TFeld
1 hour ago
@Monolica Fixed
– TFeld
1 hour ago
who would be able to improve this python code to a shorter code. i=8 for c in'conemon':i+=2;print c*i
– Monolica
9 mins ago
who would be able to improve this python code to a shorter code. i=8 for c in'conemon':i+=2;print c*i
– Monolica
9 mins ago
add a comment |Â
up vote
2
down vote
05AB1E, 16 14 bytes
.•Ω‡h₅•SÄ·8+×»
-2 bytes thanks to @Emigna.
Try it online.
Explanation:
.•Ω‡h₅• # Push "conemon"
S # Convert it to a list of character: ["c","o","n","e","m","o","n"]
Ä # Push a list in the range [1, length]: [1,2,3,4,5,6,7]
· # Double each: [2,4,6,8,10,12,14]
8+ # Add 8: [10,12,14,16,18,20,22]
× # Repeat the characters that many times
» # Join the list by newlines (and output implicitly)
See this 05AB1E tip of mine (section How to compress strings not part of the dictionary?) to understand why .•Ω‡h₅•
is "conemon"
.
1
.•Ω‡h₅•SÄ·8+×»
for 14.
– Emigna
44 mins ago
@Emigna I was just looking for a way to remove that map. Smart way withÄ·
, thanks!
– Kevin Cruijssen
39 mins ago
add a comment |Â
up vote
2
down vote
05AB1E, 16 14 bytes
.•Ω‡h₅•SÄ·8+×»
-2 bytes thanks to @Emigna.
Try it online.
Explanation:
.•Ω‡h₅• # Push "conemon"
S # Convert it to a list of character: ["c","o","n","e","m","o","n"]
Ä # Push a list in the range [1, length]: [1,2,3,4,5,6,7]
· # Double each: [2,4,6,8,10,12,14]
8+ # Add 8: [10,12,14,16,18,20,22]
× # Repeat the characters that many times
» # Join the list by newlines (and output implicitly)
See this 05AB1E tip of mine (section How to compress strings not part of the dictionary?) to understand why .•Ω‡h₅•
is "conemon"
.
1
.•Ω‡h₅•SÄ·8+×»
for 14.
– Emigna
44 mins ago
@Emigna I was just looking for a way to remove that map. Smart way withÄ·
, thanks!
– Kevin Cruijssen
39 mins ago
add a comment |Â
up vote
2
down vote
up vote
2
down vote
05AB1E, 16 14 bytes
.•Ω‡h₅•SÄ·8+×»
-2 bytes thanks to @Emigna.
Try it online.
Explanation:
.•Ω‡h₅• # Push "conemon"
S # Convert it to a list of character: ["c","o","n","e","m","o","n"]
Ä # Push a list in the range [1, length]: [1,2,3,4,5,6,7]
· # Double each: [2,4,6,8,10,12,14]
8+ # Add 8: [10,12,14,16,18,20,22]
× # Repeat the characters that many times
» # Join the list by newlines (and output implicitly)
See this 05AB1E tip of mine (section How to compress strings not part of the dictionary?) to understand why .•Ω‡h₅•
is "conemon"
.
05AB1E, 16 14 bytes
.•Ω‡h₅•SÄ·8+×»
-2 bytes thanks to @Emigna.
Try it online.
Explanation:
.•Ω‡h₅• # Push "conemon"
S # Convert it to a list of character: ["c","o","n","e","m","o","n"]
Ä # Push a list in the range [1, length]: [1,2,3,4,5,6,7]
· # Double each: [2,4,6,8,10,12,14]
8+ # Add 8: [10,12,14,16,18,20,22]
× # Repeat the characters that many times
» # Join the list by newlines (and output implicitly)
See this 05AB1E tip of mine (section How to compress strings not part of the dictionary?) to understand why .•Ω‡h₅•
is "conemon"
.
edited 40 mins ago
answered 48 mins ago


Kevin Cruijssen
30.8k553168
30.8k553168
1
.•Ω‡h₅•SÄ·8+×»
for 14.
– Emigna
44 mins ago
@Emigna I was just looking for a way to remove that map. Smart way withÄ·
, thanks!
– Kevin Cruijssen
39 mins ago
add a comment |Â
1
.•Ω‡h₅•SÄ·8+×»
for 14.
– Emigna
44 mins ago
@Emigna I was just looking for a way to remove that map. Smart way withÄ·
, thanks!
– Kevin Cruijssen
39 mins ago
1
1
.•Ω‡h₅•SÄ·8+×»
for 14.– Emigna
44 mins ago
.•Ω‡h₅•SÄ·8+×»
for 14.– Emigna
44 mins ago
@Emigna I was just looking for a way to remove that map. Smart way with
Ä·
, thanks!– Kevin Cruijssen
39 mins ago
@Emigna I was just looking for a way to remove that map. Smart way with
Ä·
, thanks!– Kevin Cruijssen
39 mins ago
add a comment |Â
up vote
0
down vote
R, 50 bytes
write(strrep(el(strsplit("conemon","")),5:11*2),1)
add a comment |Â
up vote
0
down vote
R, 50 bytes
write(strrep(el(strsplit("conemon","")),5:11*2),1)
add a comment |Â
up vote
0
down vote
up vote
0
down vote
R, 50 bytes
write(strrep(el(strsplit("conemon","")),5:11*2),1)
R, 50 bytes
write(strrep(el(strsplit("conemon","")),5:11*2),1)
edited 46 mins ago
answered 53 mins ago
J.Doe
1,091110
1,091110
add a comment |Â
add a comment |Â
up vote
0
down vote
Red, 53 bytes
n: 8 foreach c"conemon"[loop n: n + 2[prin c]print""]
Try it online!
add a comment |Â
up vote
0
down vote
Red, 53 bytes
n: 8 foreach c"conemon"[loop n: n + 2[prin c]print""]
Try it online!
add a comment |Â
up vote
0
down vote
up vote
0
down vote
Red, 53 bytes
n: 8 foreach c"conemon"[loop n: n + 2[prin c]print""]
Try it online!
Red, 53 bytes
n: 8 foreach c"conemon"[loop n: n + 2[prin c]print""]
Try it online!
answered 29 mins ago
Galen Ivanov
4,9371929
4,9371929
add a comment |Â
add a comment |Â
up vote
0
down vote
Java 11, 78 bytes
v->int i=8;for(var c:"codemon".split(""))System.out.println(c.repeat(i+=2));
Try it online. (NOTE: String.repeat(int)
is emulated as repeat(String,int)
for the same byte-count, because Java 11 isn't on TIO yet.)
Explanation:
v-> // Method with empty unused parameter and no return-type
int i=8; // Integer `i`, starting at 8
for(var c:"codemon".split(""))
// Loop over the characters (as Strings) of "codemon"
System.out.println( // Print with trailing new-line:
c.repeat( // The current character repeated
i+=2)); // `i` amount of times, after we've first increased `i` by 2
add a comment |Â
up vote
0
down vote
Java 11, 78 bytes
v->int i=8;for(var c:"codemon".split(""))System.out.println(c.repeat(i+=2));
Try it online. (NOTE: String.repeat(int)
is emulated as repeat(String,int)
for the same byte-count, because Java 11 isn't on TIO yet.)
Explanation:
v-> // Method with empty unused parameter and no return-type
int i=8; // Integer `i`, starting at 8
for(var c:"codemon".split(""))
// Loop over the characters (as Strings) of "codemon"
System.out.println( // Print with trailing new-line:
c.repeat( // The current character repeated
i+=2)); // `i` amount of times, after we've first increased `i` by 2
add a comment |Â
up vote
0
down vote
up vote
0
down vote
Java 11, 78 bytes
v->int i=8;for(var c:"codemon".split(""))System.out.println(c.repeat(i+=2));
Try it online. (NOTE: String.repeat(int)
is emulated as repeat(String,int)
for the same byte-count, because Java 11 isn't on TIO yet.)
Explanation:
v-> // Method with empty unused parameter and no return-type
int i=8; // Integer `i`, starting at 8
for(var c:"codemon".split(""))
// Loop over the characters (as Strings) of "codemon"
System.out.println( // Print with trailing new-line:
c.repeat( // The current character repeated
i+=2)); // `i` amount of times, after we've first increased `i` by 2
Java 11, 78 bytes
v->int i=8;for(var c:"codemon".split(""))System.out.println(c.repeat(i+=2));
Try it online. (NOTE: String.repeat(int)
is emulated as repeat(String,int)
for the same byte-count, because Java 11 isn't on TIO yet.)
Explanation:
v-> // Method with empty unused parameter and no return-type
int i=8; // Integer `i`, starting at 8
for(var c:"codemon".split(""))
// Loop over the characters (as Strings) of "codemon"
System.out.println( // Print with trailing new-line:
c.repeat( // The current character repeated
i+=2)); // `i` amount of times, after we've first increased `i` by 2
answered 24 mins ago


Kevin Cruijssen
30.8k553168
30.8k553168
add a comment |Â
add a comment |Â
up vote
0
down vote
MathGolf, 17 bytes
"conemon"▒{ï5+∞*p
Try it online!
I don't really know how string compression works in MathGolf, so this could be a bit shorter.
add a comment |Â
up vote
0
down vote
MathGolf, 17 bytes
"conemon"▒{ï5+∞*p
Try it online!
I don't really know how string compression works in MathGolf, so this could be a bit shorter.
add a comment |Â
up vote
0
down vote
up vote
0
down vote
MathGolf, 17 bytes
"conemon"▒{ï5+∞*p
Try it online!
I don't really know how string compression works in MathGolf, so this could be a bit shorter.
MathGolf, 17 bytes
"conemon"▒{ï5+∞*p
Try it online!
I don't really know how string compression works in MathGolf, so this could be a bit shorter.
edited 20 mins ago
answered 29 mins ago
Jo King
16.5k24190
16.5k24190
add a comment |Â
add a comment |Â
up vote
0
down vote
J, 25 bytes
echo'conemon'#"0~10+2*i.7
Try it online!
Note: There are trailing spaces on all lines except the last one.
add a comment |Â
up vote
0
down vote
J, 25 bytes
echo'conemon'#"0~10+2*i.7
Try it online!
Note: There are trailing spaces on all lines except the last one.
add a comment |Â
up vote
0
down vote
up vote
0
down vote
J, 25 bytes
echo'conemon'#"0~10+2*i.7
Try it online!
Note: There are trailing spaces on all lines except the last one.
J, 25 bytes
echo'conemon'#"0~10+2*i.7
Try it online!
Note: There are trailing spaces on all lines except the last one.
edited 13 mins ago
answered 22 mins ago
Galen Ivanov
4,9371929
4,9371929
add a comment |Â
add a comment |Â
up vote
0
down vote
Perl 6, 36 34 bytes
-2 bytes thanks to nwellnhof
("conemon".comb Zx(5..*X*2))>>.say
Try it online!
-2 bytes
– nwellnhof
7 mins ago
add a comment |Â
up vote
0
down vote
Perl 6, 36 34 bytes
-2 bytes thanks to nwellnhof
("conemon".comb Zx(5..*X*2))>>.say
Try it online!
-2 bytes
– nwellnhof
7 mins ago
add a comment |Â
up vote
0
down vote
up vote
0
down vote
Perl 6, 36 34 bytes
-2 bytes thanks to nwellnhof
("conemon".comb Zx(5..*X*2))>>.say
Try it online!
Perl 6, 36 34 bytes
-2 bytes thanks to nwellnhof
("conemon".comb Zx(5..*X*2))>>.say
Try it online!
edited 5 mins ago
answered 35 mins ago
Jo King
16.5k24190
16.5k24190
-2 bytes
– nwellnhof
7 mins ago
add a comment |Â
-2 bytes
– nwellnhof
7 mins ago
-2 bytes
– nwellnhof
7 mins ago
-2 bytes
– nwellnhof
7 mins ago
add a comment |Â
up vote
0
down vote
Jelly, 14 bytes
“¢nṣkœ+»J+4×ḤY
A full program which prints the output required.
Try it online!
How?
“¢nṣkœ+»J+4×ḤY - Main Link: no arguments
“¢nṣkœ+» - compressed string as a list of characters -> ['c','o','n','e','m','o','n']
- (...due to this being a leading constant this is now the argument too)
J - range of length -> [ 1, 2, 3, 4, 5, 6, 7]
4 - literal four
+ - add (vectorises) -> [ 5, 6, 7, 8, 9,10,11]
× - multiply by the argument -> ['ccccc','oooooo',...,'nnnnnnnnnnn']
Ḥ - multiply by 2 (vectorises) -> ['cccccccccc','oooooooooooo',...,'nnnnnnnnnnnnnnnnnnnnnn']
Y - join with newline characters
- implicit print
Oh haha - hang over from a different attempt - will fix... Thanks!
– Jonathan Allan
17 mins ago
Fixed - amazing how much I had to change it to keep it 14 bytes :D
– Jonathan Allan
13 mins ago
I guess there's no literal for 11 in Jelly?
– Jo King
11 mins ago
There is11
:)
– Jonathan Allan
9 mins ago
add a comment |Â
up vote
0
down vote
Jelly, 14 bytes
“¢nṣkœ+»J+4×ḤY
A full program which prints the output required.
Try it online!
How?
“¢nṣkœ+»J+4×ḤY - Main Link: no arguments
“¢nṣkœ+» - compressed string as a list of characters -> ['c','o','n','e','m','o','n']
- (...due to this being a leading constant this is now the argument too)
J - range of length -> [ 1, 2, 3, 4, 5, 6, 7]
4 - literal four
+ - add (vectorises) -> [ 5, 6, 7, 8, 9,10,11]
× - multiply by the argument -> ['ccccc','oooooo',...,'nnnnnnnnnnn']
Ḥ - multiply by 2 (vectorises) -> ['cccccccccc','oooooooooooo',...,'nnnnnnnnnnnnnnnnnnnnnn']
Y - join with newline characters
- implicit print
Oh haha - hang over from a different attempt - will fix... Thanks!
– Jonathan Allan
17 mins ago
Fixed - amazing how much I had to change it to keep it 14 bytes :D
– Jonathan Allan
13 mins ago
I guess there's no literal for 11 in Jelly?
– Jo King
11 mins ago
There is11
:)
– Jonathan Allan
9 mins ago
add a comment |Â
up vote
0
down vote
up vote
0
down vote
Jelly, 14 bytes
“¢nṣkœ+»J+4×ḤY
A full program which prints the output required.
Try it online!
How?
“¢nṣkœ+»J+4×ḤY - Main Link: no arguments
“¢nṣkœ+» - compressed string as a list of characters -> ['c','o','n','e','m','o','n']
- (...due to this being a leading constant this is now the argument too)
J - range of length -> [ 1, 2, 3, 4, 5, 6, 7]
4 - literal four
+ - add (vectorises) -> [ 5, 6, 7, 8, 9,10,11]
× - multiply by the argument -> ['ccccc','oooooo',...,'nnnnnnnnnnn']
Ḥ - multiply by 2 (vectorises) -> ['cccccccccc','oooooooooooo',...,'nnnnnnnnnnnnnnnnnnnnnn']
Y - join with newline characters
- implicit print
Jelly, 14 bytes
“¢nṣkœ+»J+4×ḤY
A full program which prints the output required.
Try it online!
How?
“¢nṣkœ+»J+4×ḤY - Main Link: no arguments
“¢nṣkœ+» - compressed string as a list of characters -> ['c','o','n','e','m','o','n']
- (...due to this being a leading constant this is now the argument too)
J - range of length -> [ 1, 2, 3, 4, 5, 6, 7]
4 - literal four
+ - add (vectorises) -> [ 5, 6, 7, 8, 9,10,11]
× - multiply by the argument -> ['ccccc','oooooo',...,'nnnnnnnnnnn']
Ḥ - multiply by 2 (vectorises) -> ['cccccccccc','oooooooooooo',...,'nnnnnnnnnnnnnnnnnnnnnn']
Y - join with newline characters
- implicit print
edited 3 mins ago
answered 31 mins ago


Jonathan Allan
48.6k534160
48.6k534160
Oh haha - hang over from a different attempt - will fix... Thanks!
– Jonathan Allan
17 mins ago
Fixed - amazing how much I had to change it to keep it 14 bytes :D
– Jonathan Allan
13 mins ago
I guess there's no literal for 11 in Jelly?
– Jo King
11 mins ago
There is11
:)
– Jonathan Allan
9 mins ago
add a comment |Â
Oh haha - hang over from a different attempt - will fix... Thanks!
– Jonathan Allan
17 mins ago
Fixed - amazing how much I had to change it to keep it 14 bytes :D
– Jonathan Allan
13 mins ago
I guess there's no literal for 11 in Jelly?
– Jo King
11 mins ago
There is11
:)
– Jonathan Allan
9 mins ago
Oh haha - hang over from a different attempt - will fix... Thanks!
– Jonathan Allan
17 mins ago
Oh haha - hang over from a different attempt - will fix... Thanks!
– Jonathan Allan
17 mins ago
Fixed - amazing how much I had to change it to keep it 14 bytes :D
– Jonathan Allan
13 mins ago
Fixed - amazing how much I had to change it to keep it 14 bytes :D
– Jonathan Allan
13 mins ago
I guess there's no literal for 11 in Jelly?
– Jo King
11 mins ago
I guess there's no literal for 11 in Jelly?
– Jo King
11 mins ago
There is
11
:)– Jonathan Allan
9 mins ago
There is
11
:)– Jonathan Allan
9 mins ago
add a comment |Â
up vote
0
down vote
Retina, 29 bytes
K`conemon
L$`.
$.(5*_$`)*2*$&
Try it online! Explanation:
K`conemon
Initialise the buffer with the text.
L$`.
Loop over each character and output each substituion on its own line.
$.(5*_$`)*2*$&
Repeat the match (5 + index) * 2 times.
add a comment |Â
up vote
0
down vote
Retina, 29 bytes
K`conemon
L$`.
$.(5*_$`)*2*$&
Try it online! Explanation:
K`conemon
Initialise the buffer with the text.
L$`.
Loop over each character and output each substituion on its own line.
$.(5*_$`)*2*$&
Repeat the match (5 + index) * 2 times.
add a comment |Â
up vote
0
down vote
up vote
0
down vote
Retina, 29 bytes
K`conemon
L$`.
$.(5*_$`)*2*$&
Try it online! Explanation:
K`conemon
Initialise the buffer with the text.
L$`.
Loop over each character and output each substituion on its own line.
$.(5*_$`)*2*$&
Repeat the match (5 + index) * 2 times.
Retina, 29 bytes
K`conemon
L$`.
$.(5*_$`)*2*$&
Try it online! Explanation:
K`conemon
Initialise the buffer with the text.
L$`.
Loop over each character and output each substituion on its own line.
$.(5*_$`)*2*$&
Repeat the match (5 + index) * 2 times.
answered 3 mins ago
Neil
75.8k744171
75.8k744171
add a comment |Â
add a comment |Â
Monolica is a new contributor. Be nice, and check out our Code of Conduct.
Monolica is a new contributor. Be nice, and check out our Code of Conduct.
Monolica is a new contributor. Be nice, and check out our Code of Conduct.
Monolica is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fcodegolf.stackexchange.com%2fquestions%2f173159%2fletters-challenge%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Cccccccccc Oooooooooooo Nnnnnnnnnnnnnn And so on the solution should be displaced like that. There should be new line after every character is printed n times
– Monolica
1 hour ago
1
Welcome to PPCG! I have update the challenge text to reflect your comment above (specifications should be in the post not in the comments). I also fixed up the grammar a little. Feel free to edit it more.
– Jonathan Allan
1 hour ago
I imagine this is meant to be code-golf?
– Jonathan Allan
57 mins ago
The less characters the better.
– Monolica
48 mins ago