@Dennis C# has had that for a while, it's called a discard. It intentionally acts as a variable placeholder that won't be used, for lambdas and tuple deconstructing assignment and such.
I assume it's similar in Java
You can "assign" anything to the discard, but no memory is allocated for it and the result can't be retrieved.
Mean Diluted Integers
Diluting a positive integer involves inserting a 0, one at a time, into every inner position in the binary expansion of the number.
For example, for 14 (or 1100 in binary), the dilutions are
11000 = 24
^
11000 = 24
^
10100 = 20
^
Taking the mean of 14, 24, 24, 2...
Try to create a simple ASCII art scissors animation!
Challenge
All inputs will be integers -31 through 31.
The output will be an animation (To be outputted somewhere, as long as the previous frame is replaced. GIFs are allowed.), separated by (approximately) 1 quarter of a second.
If the inpu...
@Sanchises feel free to take it! :) I think it will be a better challenge if you write it (both the polyglot or the other version), I don't have much time to write challenges.
@totallyhuman I do like animation challenges that are actually animations, rather than "print the frames one after another." The latter sort of defeats the purpose of having an animation--kind of like an image challenge where you can print a list of RGB values instead. The way the results look is an integral part of the challenge.
On a positive note: I think I might get the world record in finishing the Wheel of Time audio book series... 10-14 hours each day makes for a fast "reading".
Obviously I can tell the difference between 'eh' and 'ay'. I'm just saying that the difference is small, and adding a 'g' sound makes the distinction smaller in my ear
Constructing Matrices from Rectangles
Input is an r by c matrix of non-negative integers (you may input r and c as other parameters if this helps with golf). This may be inputted as a 2D array or, if you prefer, a 1D array (though taking in r this time is necessary). Strings separated by spaces ...
Introduction
Try to convert words to two different unicode fonts.
Challenge
Your task is to transform your input string into the 𝖬𝖺𝗍𝗁 𝖲𝖺𝗇𝗌 and 𝗠𝗮𝘁𝗵 𝗦𝗮𝗻𝘀 𝗕𝗼𝗹𝗱 unicode characters.
All uppercase words should become lowercase 𝗠𝗮𝘁𝗵 𝗦𝗮𝗻𝘀 𝗕𝗼𝗹𝗱 words.
For Example: WO...
Imagine you're a dishonorable scientist trying to prove that getting heads on a coin flip actually has about 70% probability when flipped 100 times. The trick is, you're going to flip the coin an arbitrarily large number of times (say, a million) and select the slice of 100 flips that contains t...