Top new questions this week: |
We are going to define a simple little language. A word in this language is a binary string where the longest run of consecutive \$0\$s, is shorter than every (maximal) run of \$1\$s. So for example:\... |
Say there are three multisets A, B, C. An infix condition has form<ON|FACING|NEAR> <a multiset>whereON requires ... |
BackgroundThis video goes into ways you can humanize binary, including creating a more compact writing notation using. and| ... |
Greatest hits from previous weeks: |
Edit: Please note there is currently a vote to close this coding challenge due to a complaint that it may be technically violating a decade old rule for this site. There is currently a discussion in ... |
As I'm applying for some jobs whose job advert doesn't state the salary, I imagined a particularly evil interviewer that would give the candidate the possibility to decide their own salary ...by "... |
Your task is to create the shortest infinite loop!The point of this challenge is to create an infinite loop producing no output, unlike its possible duplicate. The reason to this is because the code ... |
Credits to Calvin's Hobbies for nudging my challenge idea in the right direction.Consider a set of points in the plane, which we will call sites, and associate a colour with each site. Now you can ... |
Over on Puzzling a couple years ago, Hermant Agarwal proposed the following question:In a certain country the following coins are in circulation: 1 cent, 2 cents, 5 cents, 10 cents, 20 cents, 50 ... |
Here is a 1.2Mb ASCII text file containing the text of Herman Melville's Moby-Dick; or, The Whale. Your task is to write a program or function (or class, etc. -- see below) which will be given this ... |
Recently (okay, December 2023, I'm a little late) there's been a meme going around about a program checking if a 32-bit unsigned integer is even or odd using four billion if statements:... |