@RedwolfPrograms It’d have to be pretty reliable, I guess
@RedwolfPrograms That’d actually work if it the website was just for me, but this is for a project where they might feel uncomfortable with a platform that isn’t “official “
Are bash associative arrays implemented as true hash tables? Ie, do they have O(1) lookup and insertion time? Surprisingly, I have been unable to find a definitive answer googling...
The Tour is a page shown to new users, intended as a quick introduction to the site. As part of this, there's an example question shown to the user:
The current question, Triangle Area Side Side Side, is both closed and inconsistent with the expectations for a new challenge. It has a brief descr...
It does take the file input as Unicode unless shinh really broke something badly (the flag used is fu). Go to the "version info of languages" page and search for Jelly
Transliterate Kana to Romaji
Given a string of Japanese characters (Hiragana and Katakana, no Kanji), output its Romaji equivalent.
Input:
Japanese text, Hiragana or Katakana characters, with all possible modifiers (small tsu, long vowels, dakuten, combinations with small yu, ya, and yo, and so o...
Elixir is a programming language with a feature called the pipe operator, |>, similar to the pipe in Bash and other languages. It passes the result of an expression on the left as the first parameter of a given function on the right.
To clarify, here are some examples.
2 |> myFunction()
is equiv...
Does anyone recognise any of user81655's posts from a different username? They've got 11k and have been a user for 5+ years, but I don't recognise their username
I want to trim non empty elements in a list. So that the empty elements will be filtered at the end, and the start, but not in the middle.
The function should take a predicate to check if the element is empty.
I'm writing it in javascript but I'm interested in any kind of implementations.
Example...
I'm not online 24 hours a day, but I think our timezones overlap a lot, so I sleep at similar hours to you. Plus, I keep TNB open in a tab on my computer pretty much always
I'm active in chat pretty much all the time between 10/11am UTC and 0/1am UTC. Outside of those hours it's hit and miss :P
Yeah, makes sense. It's the overlap between users in the eastern hemisphere (late evening/night) and the western hemisphere (morning), plus it's right as European people stop work
@Adám I originally closed it as off-topic because I thought it was asking for help doing the task. Redwolf's comment made me reread it, and, if I could, I'd change my close vote to "unclear", not "off-topic"
And I'm not sure who VTRO'ed but it is by no means clear enough to be reopened
CMP: Jelly programs (by current terminology) are made up of links (each line). Each link is made up of chains, and each chain is made up of links (things like atoms and quicks). What's a good replacement word for "the things made up of chains"?
@Wasif You need spaces between each "term". This searches for anything containing "Deadfish~", "hello" and "world", whereas this searches answers to hello-world challenges with "deadfish~" in them
(needs a title)
code-golf, math
When I was in grade 3, we were taught how to solve a very simple math problem. It was equaling the denominators of two or more fractions.
Let's take two proper fractions:-
$$
\frac{1}{2},\frac{2}{3}
$$
First we will take the Least Common Multiple of the denominato...
TBH the best way to "solve" most of our problems with SE would be to have an SE employee, where part of their job is to drop by the site every couple of months or so and take a look at whatever random BS we're asking for. I'd prefer hearing "No, not going to do that" more than radio silence
The meta rep bug only got escalated to Mother Meta because Catija noticed that "fixing it" didn't actually fix it, so she went digging and found a much bigger and widespread issue
@RedwolfPrograms I went on a proper search, and it doesn't seem as though we have that as a challenge (or really anything dupe-worthy similar)
I've edited and reopened it. More test cases and "what's in the inputs" are good questions, but, so long as they're answered fairly quickly, aren't too big of an issue
I've put like half an hour into golfing something, shortened it by 50%, feel super proud of myself, then someone answers and halves the length of mine again
So CommandMaster suggested an edit on my answer (a very helpful one), but I fixed the problem myself before that, so it's no longer needed. What should I give as the reject reason? I think "No improvement" is the closest, but something like "No longer needed" would have been better.
Make a megacharacter code-golf string
You can make a # with #s:
# #
#####
# #
#####
# #
Or an X with Xs:
X X
X X
X
X X
X X
But what if you were to take a # made with #s and make a # out of those, making a level-2 #?
# # # #
##### #####
# #...
@ChartZBelatedly that's... That's not jelly. It might be 05ab1e but why do you have an infinite loop at the end. It's not husk because there is a very distinct lack of arrows. Is it add++?
IIRC the way it works is that each command has up to 9 different "commands". You provide a number of "sample" input, output pairs and it runs all possible programs (by varying the commands used) and chooses the one that has the best match to the samples
Of course, any program with n commands has a time complexity of O(9^n)
I need a third scale somewhat close to °F and °C, can't decide between Réaumur and Rømer. The first is more commonly known, but the second might be slightly more interesting.
Try it online! currently has 680 listed languages, all of which are searchable. For most of those languages, when searching for it, you don't have to enter the entire string. For example, entering lega results in just 05AB1E (legacy) appearing, and entering d+ results in only Add++. However, for ...
50+ rep for answering in my languages
I've (currently) published 20 languages, all of which can be found here and 16 of which are on Try it online!
I'm offering 50 rep to any answer that meets the following criteria:
It is written in one of Add++, Bitwise Fuckery, Deorst, NotQuiteThere, Orst, Ru...