yeah it's in UTC so it works well for Europeans because the changeover happens when they're asleep but if you're in Australia then you can actually game it the other way around - visit both in morning and evening on alternate days
@lyxal probably tommorow... I'm taking an Algorithm class which is talking about this, so it's going to depend on if there is homework for that class... the class is a summer camp... PACT (or at least a version of PACT in china)
s'pose i need a stricter definition of structure :P
im fumbling it in my head but something to do with ratios of spaces between numbers?
ill sketch out more ideas and come back when ive got something more solid :0c
ok yeah no i think i was right, "ratios of differences between numbers in the list" seems to stay constant if you only multiply all numbers by a positive constant or add a nonnegative constant to all numbers
i cant prove it but it seems true geometrically / after messing around with it :P
Solve a jigsaw puzzle
code-golf
A jigsaw puzzle consists of (usually rectangular-ish) pieces. On each side of a piece, there is either an edge or a connector1. A connector is either a tab sticking out (outies) or a slot facing inwards (innie). Two pieces can be joined if the outie tab can fit int...
Background
Here on CGCC, a commonly seen subgenre is radiation-hardening – writing a program that works even if one character is deleted. A similar problem is studied in the field of coding theory: finding an encoding that can be decoded even if one symbol is deleted from the encoded string. In t...
Do note that those two are not part of the codepage, your code needs to be encoded as UTF-8 for those commands to work because they're just joke commands
Thanks to looking more closely at Jo King's quine, TIL about my own language Acc!! that you can leave out closing curly braces at the end of a program.
Given a string containing some parenthesis and some other ASCII printable characters like this: (abc((123))(k)) your task is to remove any sets of parenthesis that are redundant.
A set of parenthesis is redundant if:
It encloses another set of matching parenthesis, like ab((123))
It encloses the...
I may be missing something, but for this challenge, why isn't the identity function the obvious choice?
I think this is an interesting puzzle, where it might not be obvious at first to solvers that competitive answers probably shouldn't write "Hello, world!" at all in the their code. — xnor21 hours ago
In accordance with our meta agreement, since one candidate received more votes than the others, we have a new featured language! Throughout August 2022, our Language of the Month will be:
Knight
What's a Language of the Month?
See the meta post for nominations. In short, during August, those wh...
@Steffan IDK, if you have a 256-character codepage, I think mod 10 might be useful enough to deserve a single-character builtin (especially if it's overloaded with something else, like @Seggan seems to be proposing).
@Arnauld No, it doesn't need to be in this range. But if you make two versions where one of them satisfies such property and other doesn't, then feel free to share both. — Jiříyesterday
huh, this is my first one where the challenge isnt based on using a specific language
thinking about the type of language that would be built to solve the challenge: maybe one where commands are based on the differences between each character code?