Top new questions this week:
|
In chess, fork means to target two pieces with just one piece, and one of the best pieces for forking is the knight. In this challenge, you will be given three coordinates in …
|
Context So the Dutch “Ministerie van Binnenlandse Zaken en Koninkrijksrelaties” (NL) – “Ministry of the Interior and Kingdom Relations” (EN) recently released the source code of …
|
A Shift matrix is a binary matrix with one superdiagonal or subdiagonal formed by only ones, everything else is a zero. A superdiagonal/subdiagonal is a diagonal parallel to the main diagonal, which …
|
Given a matrix of positive integers, output whether it’s possible to generate it by starting with an empty1 matrix of the same dimensions and repeatedly filling a whole row or a whole column with the …
|
Sometimes I feel like the conversation is going down the wrong path and take it upon myself to steer it in another direction. And this conversation is going wrong real fast, so I need to change the …
|
Inspired by the title of the Toggle some bits and get a square challenge. In that challenge you output how many bits should be toggled, in order for the base-10 representation of the binary to become …
|
Alternatively: That one challenge I forgot I had in the sandbox and is about stuff from Discrete Mathematics I learned like 5-6 months ago and kinda don’t remember Given a path of vertices that form a …
|
Greatest hits from previous weeks:
|
The Fibonacci sequence is a sequence of numbers, where every number in the sequence is the sum of the two numbers preceding it. The first two numbers in the sequence are both 1. Here are the first …
|
Challenge: In the programming language of your choice, shut down the machine that your code was executed on. Rules No shutting down by resource exhaustion (e.g.: forkbomb to force shutdown) You are …
|
You are given two true color images, the Source and the Palette. They do not necessarily have the same dimensions but it is guaranteed that their areas are the same, i.e. they have the same number of …
|
So… uh… this is a bit embarrassing. But we don’t have a plain “Hello, World!” challenge yet (despite having 35 variants tagged with hello-world, and counting). While this is not the most …
|
NPM’s sloc is a moderately popular tool for counting source lines of code in a file. The tool will attempt to strip out both single and multiline comments and count the remaining lines in order to get …
|
Notes This thread is open and unlocked only because the community decided to make an exception. Please do not use this question as evidence that you can ask similar questions here. Please do not …
|
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 …
|