Letters challenge

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
1
down vote

favorite
1












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









share|improve this question









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














up vote
1
down vote

favorite
1












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









share|improve this question









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












up vote
1
down vote

favorite
1









up vote
1
down vote

favorite
1






1





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









share|improve this question









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






share|improve this question









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.











share|improve this question









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.









share|improve this question




share|improve this question








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
















  • 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










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!






share|improve this answer






















  • 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


















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".






share|improve this answer


















  • 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

















up vote
0
down vote













R, 50 bytes



write(strrep(el(strsplit("conemon","")),5:11*2),1)





share|improve this answer





























    up vote
    0
    down vote














    Red, 53 bytes



    n: 8 foreach c"conemon"[loop n: n + 2[prin c]print""]


    Try it online!






    share|improve this answer



























      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





      share|improve this answer



























        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.






        share|improve this answer





























          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.






          share|improve this answer





























            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!






            share|improve this answer






















            • -2 bytes
              – nwellnhof
              7 mins ago

















            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





            share|improve this answer






















            • 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 is 11 :)
              – Jonathan Allan
              9 mins ago

















            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.





            share




















              Your Answer




              StackExchange.ifUsing("editor", function ()
              return StackExchange.using("mathjaxEditing", function ()
              StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix)
              StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["\$", "\$"]]);
              );
              );
              , "mathjax-editing");

              StackExchange.ifUsing("editor", function ()
              StackExchange.using("externalEditor", function ()
              StackExchange.using("snippets", function ()
              StackExchange.snippets.init();
              );
              );
              , "code-snippets");

              StackExchange.ready(function()
              var channelOptions =
              tags: "".split(" "),
              id: "200"
              ;
              initTagRenderer("".split(" "), "".split(" "), channelOptions);

              StackExchange.using("externalEditor", function()
              // Have to fire editor after snippets, if snippets enabled
              if (StackExchange.settings.snippets.snippetsEnabled)
              StackExchange.using("snippets", function()
              createEditor();
              );

              else
              createEditor();

              );

              function createEditor()
              StackExchange.prepareEditor(
              heartbeatType: 'answer',
              convertImagesToLinks: false,
              noModals: false,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: null,
              bindNavPrevention: true,
              postfix: "",
              onDemand: true,
              discardSelector: ".discard-answer"
              ,immediatelyShowMarkdownHelp:true
              );



              );






              Monolica is a new contributor. Be nice, and check out our Code of Conduct.









               

              draft saved


              draft discarded


















              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






























              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!






              share|improve this answer






















              • 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















              up vote
              0
              down vote



              accepted











              Python 2, 36 bytes





              i=8
              for c in'conemon':i+=2;print c*i


              Try it online!






              share|improve this answer






















              • 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













              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!






              share|improve this answer















              Python 2, 36 bytes





              i=8
              for c in'conemon':i+=2;print c*i


              Try it online!







              share|improve this answer














              share|improve this answer



              share|improve this answer








              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

















              • 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











              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".






              share|improve this answer


















              • 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














              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".






              share|improve this answer


















              • 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












              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".






              share|improve this answer















              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".







              share|improve this answer














              share|improve this answer



              share|improve this answer








              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












              • 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










              up vote
              0
              down vote













              R, 50 bytes



              write(strrep(el(strsplit("conemon","")),5:11*2),1)





              share|improve this answer


























                up vote
                0
                down vote













                R, 50 bytes



                write(strrep(el(strsplit("conemon","")),5:11*2),1)





                share|improve this answer
























                  up vote
                  0
                  down vote










                  up vote
                  0
                  down vote









                  R, 50 bytes



                  write(strrep(el(strsplit("conemon","")),5:11*2),1)





                  share|improve this answer














                  R, 50 bytes



                  write(strrep(el(strsplit("conemon","")),5:11*2),1)






                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited 46 mins ago

























                  answered 53 mins ago









                  J.Doe

                  1,091110




                  1,091110




















                      up vote
                      0
                      down vote














                      Red, 53 bytes



                      n: 8 foreach c"conemon"[loop n: n + 2[prin c]print""]


                      Try it online!






                      share|improve this answer
























                        up vote
                        0
                        down vote














                        Red, 53 bytes



                        n: 8 foreach c"conemon"[loop n: n + 2[prin c]print""]


                        Try it online!






                        share|improve this answer






















                          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!






                          share|improve this answer













                          Red, 53 bytes



                          n: 8 foreach c"conemon"[loop n: n + 2[prin c]print""]


                          Try it online!







                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered 29 mins ago









                          Galen Ivanov

                          4,9371929




                          4,9371929




















                              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





                              share|improve this answer
























                                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





                                share|improve this answer






















                                  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





                                  share|improve this answer












                                  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






                                  share|improve this answer












                                  share|improve this answer



                                  share|improve this answer










                                  answered 24 mins ago









                                  Kevin Cruijssen

                                  30.8k553168




                                  30.8k553168




















                                      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.






                                      share|improve this answer


























                                        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.






                                        share|improve this answer
























                                          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.






                                          share|improve this answer















                                          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.







                                          share|improve this answer














                                          share|improve this answer



                                          share|improve this answer








                                          edited 20 mins ago

























                                          answered 29 mins ago









                                          Jo King

                                          16.5k24190




                                          16.5k24190




















                                              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.






                                              share|improve this answer


























                                                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.






                                                share|improve this answer
























                                                  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.






                                                  share|improve this answer















                                                  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.







                                                  share|improve this answer














                                                  share|improve this answer



                                                  share|improve this answer








                                                  edited 13 mins ago

























                                                  answered 22 mins ago









                                                  Galen Ivanov

                                                  4,9371929




                                                  4,9371929




















                                                      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!






                                                      share|improve this answer






















                                                      • -2 bytes
                                                        – nwellnhof
                                                        7 mins ago














                                                      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!






                                                      share|improve this answer






















                                                      • -2 bytes
                                                        – nwellnhof
                                                        7 mins ago












                                                      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!






                                                      share|improve this answer















                                                      Perl 6, 36 34 bytes



                                                      -2 bytes thanks to nwellnhof





                                                      ("conemon".comb Zx(5..*X*2))>>.say


                                                      Try it online!







                                                      share|improve this answer














                                                      share|improve this answer



                                                      share|improve this answer








                                                      edited 5 mins ago

























                                                      answered 35 mins ago









                                                      Jo King

                                                      16.5k24190




                                                      16.5k24190











                                                      • -2 bytes
                                                        – nwellnhof
                                                        7 mins ago
















                                                      • -2 bytes
                                                        – nwellnhof
                                                        7 mins ago















                                                      -2 bytes
                                                      – nwellnhof
                                                      7 mins ago




                                                      -2 bytes
                                                      – nwellnhof
                                                      7 mins ago










                                                      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





                                                      share|improve this answer






















                                                      • 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 is 11 :)
                                                        – Jonathan Allan
                                                        9 mins ago














                                                      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





                                                      share|improve this answer






















                                                      • 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 is 11 :)
                                                        – Jonathan Allan
                                                        9 mins ago












                                                      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





                                                      share|improve this answer















                                                      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






                                                      share|improve this answer














                                                      share|improve this answer



                                                      share|improve this answer








                                                      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 is 11 :)
                                                        – Jonathan Allan
                                                        9 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










                                                      • I guess there's no literal for 11 in Jelly?
                                                        – Jo King
                                                        11 mins ago










                                                      • There is 11 :)
                                                        – 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










                                                      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.





                                                      share
























                                                        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.





                                                        share






















                                                          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.





                                                          share













                                                          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.






                                                          share











                                                          share


                                                          share










                                                          answered 3 mins ago









                                                          Neil

                                                          75.8k744171




                                                          75.8k744171




















                                                              Monolica is a new contributor. Be nice, and check out our Code of Conduct.









                                                               

                                                              draft saved


                                                              draft discarded


















                                                              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.













                                                               


                                                              draft saved


                                                              draft discarded














                                                              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













































































                                                              Comments

                                                              Popular posts from this blog

                                                              What does second last employer means? [closed]

                                                              List of Gilmore Girls characters

                                                              Confectionery