@cairdcoinheringaahing I figured that since the mod team would have to be interacting with SE on it, and dealing with any consequences, moderator opinions would be somewhat important
Something about SE's DDoS protection or human verification must have changed, which has caused several important chatbots to no longer be able to log in.
At first, curling /users/login from my home IP address worked, and a bot hosted there could log in just fine, while a bot of mine running on a ...
CMC Given a permutation of the integers 1 to 10, compute the minimum number of swaps needed to get to that permutation from the sorted list of integers from 1 to 10
apparently I can omit @/: for 1 to 10 as well, because C. treats it with an implicit 0 at the front, which forms its own cycle and does not affect the answer
there's already a question for counting cycles, so all you have to do is to arrange to subtract from the length of the array, e.g. a=>a.reduce(g=(c,e,i)=>e<i?g(c,a[e],i):c-=e==i,a.length)
An XOR linked list is a type of data structure used in computer programming. It takes advantage of the bitwise XOR operation to decrease storage requirements for doubly linked lists.
== Description ==
An ordinary doubly linked list stores addresses of the previous and next list items in each list node, requiring two address fields:
... A B C D E ...
–> next –> next –> next –>
<– prev <– prev <– prev <–
An XOR linked list compresses the same information into one address field by storing the bitwise XOR (here denoted by ⊕) of ...
imagine a set of 2D points. We will choose a subset and color half of them red and half blue in such a way that you can draw a straight line from each red point to a unique blue point without any of the lines intersecting
Take any set of 2n points in the plane with no three collinear, and then arbitrarily
color each point red or blue. Prove that it is always possible to pair up the red
points with the blue points by drawing line segments connecting them so that
no two of the line segments intersect.
This problem i...
Print the answer before a given answer
code-golf answer-chaining
In this challenge, you'll take an answer as input, and print the answer before it. If the answer passed as input is the first answer, print your own submission's source.
For example, if the first submission is xyz, the second is AB...
@RydwolfPrograms I saw them on the discord recently
I asked something opinion-based about the haskell type system, and they wrote what felt like a shitpost about dependent types
> I no longer work as a dev at all, but I used to be a Haskell dev and I still write a lot of Haskell. While theory predicts the existence of overtyping it has not been directly observed even in laboratory settings. High energy experiments with dependently typed languages are promising but more research is needed and it will be a long time before this reaches prod.
Subleq is a Turing-complete esolang with only one instruction, SUBLEQ. This instruction takes in three parameters, A, B, and C, all of which are memory addresses. The instruction subtracts the value in memory address A from that in memory address B, storing it in address B. If the value at B is n...
I am asking this because Vyxal, and mainly Vyxal has a compression algorithm to shave bytes off. I think of this as a bit unfair, so I would like to propose the following:
If a programming language has a compression algorithm, then include the compressed score and the normal score.
Furthermore, ...
Since when did we start scoring in bits (presumably or the charcodes)? Does this mean I can claim my solution is 205 bits, or 25.625 bytes? — ShaggyMay 11 at 0:00
Japt -¡, 63 bits / 7.875 bytes
o"+,-.<>[]
Try it
(Because, apparently, we're scoring in bits now? 🤷🏼♂️)
I'm starting to think that the joke of silently rolling it out may have been a bad idea :p
I feel like maybe I should write a meta post explaining what Vyncode is, how it works, how it's presented in answers and any other technical questions/clarifications