Given two strings as input, return the result of XORing the code-points of one string against the code points of the other.
For each character in the first input string, take the code-point (e.g. for A, this is 65) and XOR the value against the corresponding index in the second string and output ...
Proportional numbers
Your task is, given a list of float numbers, to rescale and shift numbers of a given list, so that they cover the range of [0,1], basically meaning the numbers, n, have to support n>=0<=1
This may be confusing, but you have to divide the numbers and keep their proportion to e...
Robbers thread
Cops,
Choose two strings of code, one public and one secret. We will call them P and S. You will be writing a program using only repetitions of these strings.
For example: if you choose P=helloand S=world, valid programs would be hello, world, helloworld, worldhello, helloworldworl...
Hi; what are the requirements for a language to be able to be used in submissions? I was working on one a while ago that supported text output (basically just that) and I wanted to use it in [kolmogorov-complexity] tasks
We've got various answers strewn across meta that tell different stories:
On the standard loopholes, we disallow answers that aren't programming languages. This appears to be the most definitive answer of the lot. It has a vote count of 16/-8.
However, on a question that asks "Should answers ...
It only compares languages' rankings on the same question
So, for Add Two Numbers, it'll find every pair of languages competing. Then, it'll update the score for all of those based on how they perform in that challenge.
Now, the method you suggested where you just count wins, or any variation of it, would be strongly biased, toward questions with more answers, or more popular languages, etc.
@emanresuA This is by design
The goal of my ranking system's "pure" rankings is that it has the specific mathematical property of score_a / score_b being the ratio of expected byte counts
I will have tag-specific scores as well, and answer-count-biased ones will be the primary ones shown
But trust me, I have put more than a year of thought and work into this, so it's pretty likely that most of the issues y'all think of are already planned to be addressed :p
@BgilMidol It could very well just be slow due to the computational cost of working with very large bigints
And in that case, there's very little you can do other than reorganizing the computations into something like a binary tree
Challenge Statement
The goal of this challenge is to build the 5 state Infinite Time Turing machine that takes the longest to halt.
The rest of this challenge is some definitions and an example to help you.
Turing Machines
For clarity we will define the Turing machines as used for this problem. ...
Working on the animations for this and I'm hoping to post it later today.
How would you create a function in javascript that returns a random number between 0-5000, but in any calls to this function, it cannot return a number that was already returned in a previous call.
After 5000 calls, it would return null or false (as there will be no numbers left that were not pre...
Slice the source code
cops-and-robbers
Cops
First, to understand slices, see here.
Cops, your job is write to a program, that when sliced, will input a string and reverse it. The slice could be something like [::-1][2::6] which means "reverse the code, then get each sixth char starting from index 2.
@thejonymyster The idea is that BB(n) is not computable, but if you had a lookup table you could in lookup the answer. A lookup table could be encoded all sorts of ways. The idea here is that it would be encoded in the probability of a coin flip. You then estimate the probability of the flip in order to extract information.
Because I rely on the fact that the percentages never get shorter in lengths (which, with toFixed, they don't), and don't bother clearing the line before printing the percentage
Is this a hamiltonian cycle?
path-findinggrid
There is a 3x3 square block made of 1x1 square blocks, with coins in each 1x1 block, starting from top left block you want to collect all the coins and return to top left block again, if possible provide instructions to achieve this.
Rules
From block...
Challenge Statement
The goal of this challenge is to build the 5 state Infinite Time Turing Machine that takes the longest to halt. Since Infinite Time Turing Machines can run for infinite time your score will be a "transfinite ordinal".
That's the challenge statement, but if you don't what all ...
I was having issues with the geometric mean of a large list of numbers being Infinity due to float precision, and an SO answer suggested summing the logs instead of taking the product
problems with jupiter being to scale: 1. it's so far away that once you find it the sun and other planets are actually out of the camera's far plane 2. it's so big that when viewing it the camera actually gets stuck inside the planet 3. it spins so fast I think it causes issues with my math by completing a full rotation more then once per frame
conclusion: jupiter is why we can't have nice things
@AaroneousMiller The corrected rating takes post count into account. So a language with 10 answers will be pushed closer to a score of 1000 since there's not enough answers to be certain
@taRadvylfsriksushilani Huh. So the only reason why Jelly has a massively higher corr. rating than Vyxal is because there are more answers in Jelly than Vyxal? Seems odd.
Well, all that matters to me is that the rating of flagless Vyxal is beating both Jelly and 05AB1E, even if only by a small margin, so I'm happy with the results :P