@thejonymyster If you want to add to the polyglot, pretty much all you need to do is insert a #<code> in the middle and whatever's in there will be ignored.
Desmosian Music
Create a script that takes in notes as numbers and note lengths as decimals.
You do not have to accept rest notes.
For instance, when given [[1,1],[2,2],[3,0.5]] you should return a desmos graph that plots:
- <== 3
---- <== 2
-- <== 1
Scale the note lengths to fi...
Can we do it with an 89?
This was originally meant to be a Puzzling Challenge:
Can we do it with an 89?
89 is my favorite number. Your task is to make 1~100 using only one 89. Operations allowed are:
Factorial (3! = 6)
Parenthesis ((3!)! = 6! = 720)
Double Factorial (4!! = 4*2 = 8)
Square Ro...
Good Rectangles and Evil Numbers
This is meant to be a Puzzling Challenge:
Good Rectangles and Evil Numbers - Integrated
Original: https://puzzling.stackexchange.com/questions/116168/good-rectangles-and-evil-numbers
Good Rectangle
We define a good rectangle with base \$ x \$ as a rectangle in wh...
¯¯\/¯¯
__/\__
Morse Tangles: ASCII Art
Given a word (with only letters, case insensitive), say SOS:
Change the word into Morse code, in this case, ... --- ...
Change dots to parallel bars and dashes to tangles.
Output the result as ASCII art:
¯¯¯¯¯¯ \/\/\/ ¯¯¯¯¯¯
______ /\/\/\ ______
No...
The Narrative
You are a bad musician. You never bothered to learn how to count rhythms. To remedy this shortcoming, you decide to write a program that will tell you how to count in any given time signature. You are still a bad musician, but you can at least pretend that you can count rhythms.
The...
Two In One: Guess That Language: Robbers
This robbers-and-cops challenge challenges the robber to create a script such that it runs in language A forwards and language B backwards. Language A and B must be distinct. By runs, a program must not ask for input and can only give text output to STDOUT...
@Nobody For a few reasons: 1. SO/SE isn't a social media, there's no need for private messages in the strict and impersonal Q&A format SE is aiming for; 2. it creates safety issues, as allowing users to privately talk on the platform would make it harder to stop rude and abusive discussion (or worse, given there are children here); 3. there sort of already is private messaging, but only from mods to normal users, for situations where that's necessary
@lyxal No. 3 of them are legitimate Sandbox proposals. Just because they were posted within quick succession doesn't mean they should be trashed and so decrease their visibility
My general rule is that if it's 4 or more messages, and they aren't immediately "pushed away" and ignored by ongoing conversation, then trash them
(1, 2 or 3 messages, the "messages moved" message takes up basically the same amount of space)
@cairdcoinheringaahing And, if they are ignored by ongoing convos, then you can also trash them. I generally give a higher "weight" to trashing stuff that's been sitting visible for a while than stuff that fewer people are gonna see
Just saw this (10k+ users only, deleted) in the Bakery, and decided to give it a try; immediately, let a = b= c = 1 and the two matrices are different :P
Alternatively, \$b^2 + 2ac > 0\$ for all \$a, b, c > 0\$, but \$bc - a^2 < 0\$ for some \$a, b, c > 0\$
@emanresuA How on earth did you find this answer to cast a delete vote on it? The Q's been inactive for almost 2 years, and the only other DV was cast in 2018 I believe :P
Okay so, I've got a challenge in the sandbox (not at all fleshed out, just a title) that I want to discuss/get feedback on, to see if the concept's worth pursuing
Basically, given a 64-bit floating point representation of a number, you try to approximate the square root of it as quickly as possible (and I'm talking like, individual CPU cycles, no time for looping)
E.g., you can very roughly approximate the square root of a float by right-shifting its exponent
Possibly. I don't really want to have to make my own semi-realistic CPU architecture though, and it'd be a bit neat if it was a real one. Maybe I could use some sort of old processor that's super thoroughly documented?
@cairdcoinheringaahing Yeah, that's sort of what I was thinking. Maybe time divided by accuracy (math.max(sqrt(n) / approx(n), approx(n) / sqrt(n)) or similar)
Damn, of all users without Marshal, I'm the 6th closest to getting it (technically 7th as WW is ahead of me, but mods can't get Marshal while being mods). ProgramFox, flawr, DJ, SS Anne and PeterJ are ahead of me (in descending order of number of flags)
Tapes, Pointers, And sub=tapes: BrainFuck+
In this challenge we make an interpreter for a subset of BrainFuck+.
As with BrainFuck we start with the tape [0] and pointer at index 0.
BrainFuck+ Simplified: Commands
+ and -
Update the current cell, as in BrainFuck.
Example:
++
=>
[2]
^
--+-...
@Nobody as in, why can only users with 10k rep see deleted posts?
It's mainly because at 10k, you can cast delete/undelete votes, and so you kinda have to be able to see deleted posts. And, if anyone can see a deleted post, then what's the point of deleting it?
today in reasons my laptop needs to be exorcised, thrown into the ocean, or possibly both: i have somehow managed to get steam stuck open in the background, i cannot stop it with task manager or actually open steam
@Nobody Whenever you raise a flag, one of the moderators takes a look at it, possibly does something because of the flag, then, if they decide that the flag should have been raised, they mark it helpful. If they think that "No, this didn't need to be flagged", they mark it declined
One super easy way to get a bunch quickly, then get told off by the mods, is to raise a "no longer needed" flag on every comment in a long chain that is, well, no longer needed
@TheGuywithTheHat Mutable. The description specifically says that if your language doesn't support mutable strings, character arrays are acceptable. — IchBinKeinBaumMay 12, 2014 at 11:58
And I appreciate it if anyone can give any suggestions for my questions in the sandbox. BTW I wonder if there is a reason not to post 5 questions in the sandbox post at a single time (except perhaps that it is not seen before or something similar)
@Nobody generally, you should post in the sandbox when you write up a post. so, generally, it should take you a decent amount of time between drafting and posting your Sandbox drafts to avoid flooding the chat room with new posts
e.g. if you have 3 ideas for challenges, the time it takes to write each one up would prevent all three from being posted at once, as you post the first, then write the second, then post and start writing the third etc.
lol is a palindrome, dad isn't
Given a dictionary, find all visual palindromes.
When reversed:
b > q
d > p
l > l
n > u
o > o
p > d
q > b
s > s
u > n
x > x
z > z
Assume only lowercase letters as input.
Test input:
[
this,
another,
lll,
lol,
dad,
dab,
dap,
wow,
]
Output:
[
lll,
lol,
dap,
]
...
language be like: - macros like C - simple like python - functional like haskell - object oriented like C++ - pattern matching like scala - typed like C++ - fast like k - array oriented like APL
the only weird bug ive ever had was the one where javascript will let you confirm that an array exists and that all of its elements exist but the moment you try to read them it denies it ever existed
it was for a school project and not anything serious, so i just stringified it and regex searched for the data i wanted
every other bug ive had was a regular mistake by me
language be like: - macros like C - simple like python - functional like haskell - object oriented like java - pattern matching like scala - typed like Typescript - fast like k - array oriented like APL - popular like javascript
Are you familiar with the Penalty Box? The penalty box (sometimes called the sin bin, bad box, or bin) is the area in ice hockey, rugby football and some other sports where a player sits to serve the time of a given penalty, for an offense not severe enough to merit outright expulsion from the…
is someone still able to chat
if so (i can still chat) i would like to test it out ;-)
chat suspensions and site suspensions are separate
when your site account gets suspended, if it is the parent account to your chat profile, your chat account gets automatically suspended for the same duration, but technically they're separate
Create a function (preferably) or a program that takes an ordered collection and outputs the smallest possible palindrome that starts with the input.
For example:
>>> completePalindrome( [1, 2, 3] )
[1, 2, 3, 2, 1]
>>> completePalindrome( [1, 2, 3, 4, 5, 4, 3, 2] )
[1, 2, 3, 4, 5, 4, 3, 2, 1]
>>
Introduction
For the ones who don't know, a palindrome is when a string is equal to the string backwards (with exception to interpunction, spaces, etc.). An example of a palindrome is:
abcdcba
If you reverse this, you will end up with:
abcdcba
Which is the same. Therefore, we call this a palind...
@hyper-neutrino so i write up a question in the sandbox? ok
i'll ask you
i think compressing a program into a picture makes 6 bytes into one codel and i think that is sort of... unfair sometimes (even tho piet for example doesn't use all colors
i think compressing a program into a picture makes 6 bytes into one pixel and i think that is sort of... unfair sometimes (even tho piet for example doesn't use all colors
i think compressing a program into a picture makes 3 bytes into one pixel and i think that is sort of... unfair sometimes (even tho piet for example doesn't use all colors