@cairdcoinheringaahing that means that it hasn't loaded the processing file, that can take a while on a bad internet connection or in case of some error
@cairdcoinheringaahing that tells me that a whole JS script part wasn't loaded. Try running (async function f(){console.log("test")})() in the console and see if it logs test
Challenge
Given an integer n (where 4<=n<=10**6) as input create an ASCII art "prison door"* measuring n-1 characters wide and n characters high, using the symbols from the example below.
Example
╔╦╗
╠╬╣
╠╬╣
╚╩╝
The characters used are as follows:
┌───────────────┬─────────┬───────┐
│ Pos...
Introduction:
Since it's almost Halloween, I was just thinking of some random Halloween-themed challenges. Eventually I was reading through Frankenstein's wikipedia page, and came across the following text:
The creature
Part of Frankenstein's rejection of his creation is the fact that h...
Given a, b, c the length of the three sides of a triangle, say if the triangle is right or not.
Input
Three decimal values in any order
Output
Either a true specific output (true, 1, yes, ...) or false specific output (false, 0, no, ...)
Example
5, 3, 4 --> yes
3, 5, 4 --> yes ...
Does anyone know an alternate for dot for displaying large directed graphs? It seems to just completely mess up and not show it in a sane format at all
level code now is [[32,39],[12,16],[36,38],[38,40],[6,13],[25,32],[35,37],[10,11],[39,40],[6,10],[19,26],[36,38],[20,21],[15,22],[30,37],[27,30],[19,24],[26,31],[12,17],[29,33],[37,39],[39,40],[0,8],[33,38],[22,28],[15,18],[38,40],[32,38],[17,22],[11,14]]
CMC: (Not post this as main challenge because I'm afraid of downvotes (there is CMDV anyway, but anyway)) Write a program to solve the game in polynomial time of the game size, given the current condition. Not code-golf.
Every positive integer can be expressed as the sum of at most three palindromic positive integers in any base b≥5. Cilleruelo et al., 2017
A positive integer is palindromic in a given base if its representation in that base, without leading zeros, reads the same backwards. In the following...
To Mac users, what is the "Control" key on Mac used for besides Control+click = right click? Like, would you ever expect it as part of a key binding in a program or game?
@LuisMendo just a small typo in The algorithm used should work for arbitrarily large inputs. However, it is acceptable if the program is limited by memory, time of data size restrictions.; shouldn't it be time or... instead of time of... ?
@HyperNeutrino Is it just me or that the builtin in Jelly is hard to find? e.g., Uneval (why not ToString? I guess for the only reason the atom was named Ṿ and not Ṫ or something like that)
We have objects that oscillate between two integer points, [l, r], at the speed of one unit per time unit, starting at l on t=0. You may assume l < r. For example, if an object oscillates on [3, 6], then we have:
t=0 -> 3
t=1 -> 4
t=2 -> 5
t=3 -> 6
t=4 -> 5
t=6 -> 4
t=7 -> 3
t=8 -> 4
Etc. But ...
HTML+CSS, 254+nmax*28 bytes
We can check primality using regular expressions. Mozilla has @document, which is defined as:
@document [ <url> | url-prefix(<string>) | domain(<string>) | regexp(<string>) ]# {
<group-rule-body>
}
To filter elements via CSS based on the current URL. This is a si...
Yes
CSS is a programming language. From What is a programming language, which is the authoritative answer, and has a score of 44:
This definition does not require a language to be Turing-complete (although it certainly permits any Turing-complete language). This is intentional. Turing-comple...
Anonymous
i flattens a list by one level (does nothing to non-lists, except the weird overload for strings where it's atof). ♂ maps i over each element of the list.
CMC: Invert the depth of a list. Basically, get the depth of every element in the list, and subtract that from the maximum depth plus 1, then recreate a list from those elements, using those depths. Example: [1, [2, 3, [4, 5], 6]] => Elements zipped with depths ([element, depth]): [[1, 1], [2, 2], [3, 2], [4, 3], [5, 3], [6, 2]] => Depths inverted => [[1, 3], [2, 2], [3, 2], [4, 1], [5, 1], [6, 2]] => [[[1], 2, 3], 4, 5, [6]]
I'm posting this on sandbox first, because this might not be a good challenge for this site, or just too complicated, because it's about constructing a meaningful sentence. Please, tell me, if it's appropriate task for this site.
Also a note: If you want, I can wait for Christmas with this.
Bac...
Non-math explanation
This is an explanation that is meant to be approachable regardless of your background. It does unfortunately involve some math, but should be understandable to most people with a middle school level of understanding
A pointer sequence is any sequence such that a(n+1) = a(n-...
I don't really like SO's community, but I will say there's a different kind of satisfaction that comes from knowing I helped a real person with their problem
Even though PPCG is overall more fun, SO is satisfying too
@cairdcoinheringaahing Depends on what exactly you're asking. Questions about developing it or getting installed would probably be on-topic (I've asked some of those before), but questions about using/golfing it would not
I think I've weirded out the people there by asking strange questions because of V lol
This is a fewest-operations challenge where the objective is to sort a vector into ascending order using the fewest reversals. Your algorithm can only sort the vector using "sub-vector reversals"1, but it can use other operations for arithmetic operations, loops, checking if it's sorted etc. The ...
Let's say you have a positive integer N. First, build a polygon, that has N vertices, with the distance between every vertex being 1. Then connect lines from every vertex, to every other vertex. Lastly, calculate the length of all lines summed up together.
Example
Given the input N = 6, build a...
You could make this more efficient by using a successive bisection algorithm. Invite one half of the office to a group chat first, then the other half. If one chat is "quiet", that group is clean. If both chats are loud, divide the office into 4 quarters. Keep bisecting that way until you have identified all the culprits. — Masked Man3 hours ago
Why programmers shouldn't be allowed in the workplace ^
Anonymous
7:02 PM
@DJMcMayhem I agree. Programmers should be allowed to work from home :D