Top new questions this week:
|
|
The Factorial Number System, also called factoradic, is a mixed radix numeral system. The factorials determine the place value of a number.
In this system, the right most digit can be either 0 or 1, …
|
|
The Problem: Count the number of holes in a connected polygon. Connectivity of the polygon is guaranteed by the condition that every triangle in the input triangulation shares at least 1 side with …
|
|
Write a program in your chosen language which plays a perfect game of tic-tac-toe on a 3 * 3 board against a human player. However, every move has to be a different program, generated from the …
|
|
The primorial of a number is the product of all the primes till that number, itself included.
Input a number from STDIN and evaluate its primorial.
Don't use libraries. Shortest code wins.
|
|
Pascal's Pyramid is an extension of Pascal's Triangle to the third dimension. Starting with a 1 as the apex, the elements of each successive layer can be determined by summing the three numbers that …
|
|
Your mission, even if you don't accept it, is to input three numbers from STDIN or file:
5 0.5 6
What you must do is evaluate this:
(5a + 0.5b)^6
This basically means that the first two …
|
Greatest hits from previous weeks:
|
|
Write the shortest code that either:
Generates a Fibonacci sequence (either in standard output, or as a stream)
Calculates, given n, the nth Fibonacci number
(I gave both options in case one is …
|
|
Our task is to, for each letter of the (English) alphabet, write a program that prints the alphabet, in a language whose name starts with that letter.
Input: none
Output:
abcdefghijklmnopqrstuvwxyz
…
|