19
I have a problem for a cyber club that asks you to print:
ZYXWVUTSRQPONMLKJIHGFEDCBA@?>=<;:9876543210/.-,+*)('&%$#"!
Using Brainf**k in 29 bytes or less without using the ',' character.
I have a working code:
++++++++++[>++++++>+++++++++<<-]>-->.<[>-.<-]
However my loop is too long, sending me 16 bytes over the limit.
Is there a more efficient way to set the second and third cell to 58 and 90 so I can run my second loop? Or is there a better way to do this all together that I am just not seeing?
1As for your question, while it only saves four bytes, it's actually better to generate 59 and 90 and change the
-.
to.-
, dropping the>.<
. – Martin Ender – 2016-08-27T15:05:22.150I got
+[--->++<]>++++[.-]
for 19 bytes but it prints the control chars as well... – Timtech – 2016-08-27T18:52:39.830@MartinEnder Yeah sorry about that, I saw your comment on the other post and found this group which seemed much more appropriate, I will delete the one on SO since it didn't generate many answers. – Nick Rod – 2016-08-28T04:57:35.233
2I'm honestly curious what this "cyber club" is, because boy they must have some really good golfers! – Sp3000 – 2016-08-28T11:40:42.217