Implement 1-dimensional version of Multi-Take code-golf apl array-manipulation
Background
Adám and I were once discussing a way to properly extend some features in Dyalog APL. I came up with the following extension to Take, a function that takes some front or back elements (and an analogous exten...
@Adám CMC: Output the %GREETING_TIME% as defined in a Novell Netware login script: "Morning" before noon, "Evening" from 18:00 onwards, and "Afternoon" in between.
Fix mispellings code-golf kolmogorov-complexity
Wikipedia has a list of common misspellings, and there is also a machine-readable version!
Your challenge is to input a string and fix the mispellings in it.
The parituclar list we'll be using is https://en.wikipedia.org/w/index.php?title=Wikipedia:...
Many folks avoid the "mixed number" notation such as $4\frac{2}{3}$ due to its ambiguity. The example could mean "$4$ and two thirds", i.e. $4+\frac{2}{3}$, but one may also be tempted to multiply, resulting in $\frac{8}{3}$.
My questions pertain to what happens when we iterate this process -- al...
CMC: Take an improper fraction, convert it to a mixed number, then multiply the integer and fractional parts together. Repeat until a proper fraction results. Output the resulting sequence of fractions.
You are given a non-empty list of positive integers. Your task is to figure out how many distinct numbers can be obtained by applying the following algorithm:
Remove either the first or the last item from the list and initialize N to the corresponding value.
Remove either the first or the last i...
@Neil I have no idea if this poorly golfed 83-byte Mathematica thingy counts: Try it online!. The problem with it is that it represents a b/c as a \[CirclePlus] b/c...
Hi all! I've created a new room to discuss and brainstorm new potential esolangs. I have a few ideas myself, and in general, I love throwing around ideas for such things! Please join if such discussions sound fun :)
Also, please do let me know if advertising is inappropriate here. Just thought I'd do it once, in the general chatroom, since I just made and I can't imagine how else it ever gets seen
@Adám @cairdcoinheringaahing Of course. But then it still is off-topic. Which means it's only secondary to whatever happens here, and must be stopped whenever anything better comes along. Seems to me that's what making new rooms is for!
The goal of this challenge is to solve a user given math problem in python.
This sounds easy but you can't use eval or exec function.
The programming language can be any version of Python
Example:
In[1]: 3x2
Out[1]: 2
In[2]: 3:4
Out[2]: 0.75
In[3]: 10%3
Out[3]: 1
Rules:
As mentioned , don't u...
This is the logo for LAPACK, a widely used software library for numerical linear algebra.
Your task is to print the logo (color and matrix brackets not required) as this exact string. Trailing newline is allowed.
L A P A C K
L -A P -A C -K
L A P A -C -K
L -A P -A -C K
L A -P -A C ...
Polyglot: Convert Case
polyglot string code-golf
Your task is to complete the conversions below in the same program in different languages. For example, running your code in Python 2 might transform input to snake case, but running it in JavaScript might transform input to kebab case.
Tasks
The ...