# All Questions

11,152 questions
Filter by
Sorted by
Tagged with
201 views

In this fastest-code challenge, you are provided with a set of $n$ identical blocks and need to determine how many unique buildings can be constructed with them. Buildings must satisfy the following ...
141 views

### Cutting Sequence for N dimensions

Inputs: The program or function should take 2 vector-like (e.g. a list of numbers) O and V of the same number of dimensions, and a number T (all floating-point numbers or similar) Constraints: T >=...
991 views

### Smallest number such that concatenation is a square

Challenge Write a program or function that takes a number $n$ and returns the smallest $k$ such that concatenation $n'k$ is a square. This sequence is described by A071176 on the OEIS. I/O ...
45 views

### Time complexity of combinations of n pairs of parentheses [closed]

I have the following code snippet for combinations of n pairs of parentheses. ...
1k views

### Are the beams above or below the notes?

In musical notation, groups of notes shorter than one beat are joined together by a line at the bottom called a beam. Here are a few bars of music with the beams highlighted: (Taken from Second Suite ...
2k views

### Move my liquid to make me equal

You are given 4 positive integers: volume of the first container (v1), volume of the second container (v2), volume of the liquid ...
551 views

### Spotify Shuffle (music playlist shuffle algorithm)

Background Perfect shuffle algorithms like Fisher-Yates shuffle don't produce great results when it comes to music playlist shuffling, because it often produces clusters of songs from the same album. ...
434 views

### Keta Bracket Autocompletion

Special thanks to Bubbler and AdmBorkBork for supplying feedback about this challenge Keta (Keyboard tacit — clever naming, I know!) is a golfing language I’ve been working on recently. One of it’s ...
45 views

write a program that loads 10 values from a file and computes the average. you should only open the file once. C++
7k views

### 99 ways to say “I love you”

Inspired by this blog post. Write a program that outputs 99 distinct programs (in the same language) that output the string I love you. How the programs are ...
56 views

### What is the correct complexity of All paths from Source to Target DFS solution [closed]

The question: "Given a directed, acyclic graph of N nodes. Find all possible paths from node 0 to node N-1, and return them in any order." The DFS solution is described here. https://leetcode.com/...
277 views
+50

### Average number of strings with Levenshtein distance up to 4

This is a version of this question which should not have such a straightforward solution and so should be more of an interesting coding challenge. It seems, for example, very likely there is no easy ...