@BetaDecay It's your challenge so it's up to you. I just thought since it's not the main part of the challenge it might invite more golfing opportunities to leave it open
@BetaDecay While I'm making minor quibbles: You end with "shortest program" rather than "shortest code". I'm assuming you allow functions too since they aren't explicitly excluded?
Yes, but only for languages such as sed, Retina, ///, etc.
Only where it is the language's most natural integer representation.
I'm in general a fan of taking input in the most natural format for a given language. If a language has no integer type / integer processing capabilities, then the mos...
What do the isosurfaces behind a fan look like? That is, if we have a fan running, the air in front gets pushed away in a column, but the air being drawn into the fan comes from all directions. So, looking at the points where the air speed is roughly the same, do they form a spherical distribution, or some other shape?
@El'endiaStarman Unfortunately I don't have any, but I observed it a few times when doing some woodworking and the sun is shining through the window at a low angle, I saw how the dust moved into the shop vac=)
@El'endiaStarman Haha, I never thought of it as an asymmetry:)
But I did do quite a few expriments / a lot of reading about vacuum cleaning a while ago, for making and later improving a cyclonic dust separator. (The chips from the planer kept clogging the vacum cleaner) (something like this but smaller)
Note: This challenge is not the same.
Challenge
Believe it or not, we haven't got ONE challenge for reversing one-dimensional arrays (although we've got one for n-dimensional ones)! This should operate only on the 1st dimension, not on all dimensions of an array.
Rules
Standard loopholes are...
@El'endiaStarman Exactly, but as they are no perfect it is still advisable to use a filter. In my setup the air goes through the cyclone first, and then through the vacum cleaner, that way the bag in the vacuum does not fill up / only does the filtering for really fine particles.
And you can use a container of arbitrary size below the cyclone.
oh, reference to previous conversation around here that iphone is better - you now need at least 40 USD worth of additional hardware just to listen to music while charging the phone.
if u want to use custom headphones which still have 3.5mm jack, then 70 USD
Flexagonal datastructures
Being programmers, watching us flex aren't very interesting. Today we change that! In this challenge you will lex and flex a hexaflexagon.
About
For a video introduction, watch viharts video(s) on flexagons
A flexagon is a shape that you can flex to reveal faces othe...
Some people count sheep to get to sleep. Others count goats.
Write a program or function that takes in a positive integer N and outputs N-1 awake goats followed by one sleeping goat, as if someone was counting N goats and at the very last one they fell asleep.
Awake goats look like this:
...
@flawr It's interesting how much poor design contributed to the problem. Really, four warnings that couldn't be understood? That could've been avoided.
C: 301
This program creates a simple, abstract image in the PGM format. You can open it with GIMP.
int x,y,i,d,w;srand(time(NULL));unsigned char p[480000];FILE *f=fopen("a.pgm","w");fprintf(f,"P5\n800 600\n1\n");i=480000;while(i--)p[i]=i>240000|(i%800+i/800&3)!=0;i=100;while(i--){d=(11000-i*i)/...
I don't know Ruby, but you can start with a list of each character, and then for n-1 times, extend it with k copies of itself where each copy has a different character appended.
There is a way using Java from Matlab, specifically the java.awt.Robot class. See here.
Apparently there are two types of programs, regarding the way they work when called from Matlab with system('...'):
For some programs, Matlab waits until the program has finished before running the next sta...
Some people count sheep to get to sleep. Others count goats.
Write a program or function that takes in a positive integer N and outputs N-1 awake goats followed by one sleeping goat, as if someone was counting N goats and at the very last one they fell asleep.
Awake goats look like this:
...
@HelkaHomba Not terribly interesting imo, but it's ASCII art, so that's to be expected. Probably won't downvote though, even though the lack of geogoats in that geogoat post is quite disturbing.