What can I build? code-golf
The Rules
Today I have decided to make geometric shapes out of toothpicks and gumdrops! However, I have a limited supply, so you have to figure out what I can build.
I will give you an input in the format m n, where m is toothpicks (edges) and n is gumdrops (vertices...
What can I build? code-golf
The Rules
Today I have decided to make geometric shapes out of toothpicks and gumdrops! However, I have a limited supply, so you have to figure out what I can build.
I will give you an input in the format m n, where m is toothpicks (edges) and n is gumdrops (vertices...
Create a program that outputs "Hi, Hello!" in k bytes. By altering n bytes, the code should output all odd numbers in the range 5 <= x <= 25.
Changing another m bytes should result in a code that prints the following frame in ASCII-art:
+-+
| |
+-+
Change another o bytes, and print Hello, bye!...
@ArtOfCode Actually, if you want the longest word i can think of (not actually spell) is the scientific name of titin (182919 letters, methio-something)
@HelkaHomba Really? I feel like if you are <2K trivial edits are kind of a waste of time. If you are going to make other people review it, it should be worth the time taken to review it.
@HelkaHomba You realise that the pronunciation for both of those words have been around for longer than the spellings, and it's the spellings that don't make sense?
Another one (I think, someone correct me if I'm wrong) is "First" floor. In US, the first floor is on the ground, and in the UK the first floor is above the ground.
Create a program that outputs "Hi, Hello!" in k bytes. By altering n bytes, the code should output all odd numbers in the range 5 <= x <= 25.
Changing another m bytes should result in a code that prints the following frame in ASCII-art:
+-+
| |
+-+
Change another o bytes, and print Hello, bye!...
The left and right numbers are linked. What should the last number on the right be, and why?
\begin{align}
135759&: 1 \\
151364&: 4 \\
255075&: 9 \\
279422&: 36 \\
292620&: 91 \\
348777&: 135 \\
398067&: 147 \\
417894&: 265 \\
459431&: 279 \\
478926&: 307 \\
609941&: 363 \\
689245&: 435 \\
814576&...
> I can't remember where I heard this, but someone once said that defending a position by citing free speech is sort of the ultimate concession; you're saying that the most compelling thing you can say for your position is that it's not literally illegal to express.
Let's say you have an integer n, and you want to convert it to an arbitrary base, say 5 or 7. How can you best do that? The output should be in a string format. Bases will only be "natural" numbers (positive integers, above one). The base version will only require managing from 2-10, bonus points...
Even crazier: chaos-pp makes the C preprocessor a quasi-functional language in itself. Example: This code produces This C-file without actually compiling it (gcc -E -P bottle.c -std=c99). That's one of the trivial examples. This is black magic.