Welcome to the 16th Biweekly Mini Golf. During this event, we'll post some CMCs (Chat Mini Challenges) for you all to solve. A new one will be added every 5 to 10 minutes. Feel free to keep suggesting drafts during the event. If you have any questions, don't be afraid to ask. Good luck!
Draft: (standard sequence I/O rules) output the sequence of positive integers which are divisible by 2 an even number of times. i.e. 1 3 4 5 6 7 9 10 11 12 13 14 15 16 17 ...
AICMC: Write a function that takes in a string and outputs only lowercase english letters.
hmm the AI seems to be in an unhelpful mood tonight. It's generating either completely non-objective CMCs or just describing easy things in fancier terms
Order of an algebraic number
Consider some arbitrary polynomial with integer coefficients,
$$a_n x^n + a_{n-1}x^{n-1} + \cdots + a_1x + a_0 = 0$$
We'll assume that \$a_n \ne 0\$ and \$a_0 \ne 0\$. The solutions to this polynomial are algebraic numbers. For example, take the polynomial $$x^4 - 10x...
See also Stack Exchange Glossary - Dictionary of Commonly-Used Terms.
Abbreviations marked with a star (*) are chat specific.
Catalog: A type of simple on-topic challenge where the challenge's aim not so much to find a winner as it is to create a catalog of solutions in many languages.
CG: Code G...
I'm still mad at SE for giving out a hat for cheating at the winter bash game when I was the #1 player in terms of time spent and worked for quite a while to help report cheated scores
Challenge
You should write a program that has one in (your code in bytes) chance to print out a 4. So if your code has n bytes, your code should have 1 in an n chance to print out a 4.
Rules
You should not use any whitespace or comments to get to the number that you want.
You shouldn't use any l...
In a certain code language, ‘348’ means ‘she likes apples’, ‘8375’ means ‘parrots likes apples lot’ and ‘748’ means ‘she likes parrots’. What is the code for ‘parrots’ in that language?
I don't think you can, unless at least one is entirely inside your avatar, in which case you can screenshot it, use it as avatar, and wear another hat on that.
I see. That's not classic PN, though, because functions are data. Classic PN (e.g. RPN of HP calculators) maintains a distinction, obviating the need for parens.
I was browsing Stack Overflow when I saw this post in Puzzling in the hot network questions and decided to make a challenge out of it (all credit goes to the creator of the challenge).
Overview
A Chess Number is a number that, when converted to base 18, results in a valid chess coordinate pair, w...
@Adám Must be penguins that live at a northern hemisphere zoo. (I would also mention Galapagos penguins, but I guess they're equatorial so it's not exactly winter for them either.)
best I could come up with was Assign(0, a) while (1) { Multiprint(Cast(a)); Dump(); Move(:Left); Print(1); Dump(); Clear(); MapAssign(Incremented, a); }
Dump(); is rate-limited though so this will time out rather than overflowing the output limit
Low difficulty
Image 1:
ABCDabcd01::::
Image 2:
Fun fact: The practice of designing a cryptographic algorithm which itself uses cryptography to allow the designer of the algorithm to read any message is known as "kleptography" (not relevant to this, just an interesting field that's a friend-o...
and I might as well share my competitive programming experience since I suspect some people would be interested - i have accumulated almost 60 stars on my AOC solutions repository since i'm the highest ranked person with easily accessible solutions
also ^^; there are still like, unary and binary operators and you can talk about the arity of a function, but it doesn't matter because you don't have things like chaining rules or whatever
and also strings are not nilads they are just values. python is not functional
@hyper-neutrino Reminds me of the time I had written 4 chapters of a fanfic and then my USB drive failed. I did end up rewriting it all, and it was probably better the second time through. But it also taught me the importance of backups. :P
Tacit programming, also called point-free style, is a programming paradigm in which function definitions do not identify the arguments (or "points") on which they operate. Instead the definitions merely compose other functions, among which are combinators that manipulate the arguments. Tacit programming is of theoretical interest, because the strict use of composition results in programs that are well adapted for equational reasoning. It is also the natural style of certain programming languages, including APL and its derivatives, and concatenative languages such as Forth. The lack of argument...