All Questions

11,260 questions
Filter by
Sorted by
Tagged with
0answers
33 views

Branch Out - Monkey Edition

The Monkey has swung home to find his tree all in pieces. He likes order and scoops up all his 'tree-parts' and sets them out in 3 groups. The Monkey's ...
12answers
292 views

Square-Cube Digit Usage

The point of this challenge is to find the smallest positive integer that uses up at least all of the digits supplied in the input after it is squared and cubed. So, when provided an input such as <...
6answers
217 views

Pairs of palindromic anagramic dates separated by a palindromic number of days

Definitions: A palindrome is a string which reads the same backward or forward (not counting spaces or special characters), such as "madam" or "Sorel Eros". A date is said to be a palindrome when ...
5answers
161 views

String-wise calculus (i)

This will turn into a series involving other aspects of calculus, including using the "derivative" of a string to find "stationary points" etc, as well as "integration" of sentences Introduction If ...
7answers
783 views

Single Digit Representations of Natural Numbers

Task Write a program/function that when given a positive integer $n$ and a digit $d$ which is not 0 outputs a way to represent $n$ using only addition, subtraction, multiplication, ...
1answer
96 views

Polyglot “Hello world” in Fortran and Lisp [duplicate]

Simple challenge: The code must be both valid Lisp and valid Fortran, and must print out "hello world" in both. Note: I've sunk about 5 hours into this at this point, I'm not even sure it's possible ...
21answers
1k views

Summing a sub-square of a quarter of an infinite chessboard

Description of the problem Imagine a quarter of an infinite chessboard, as in a square grid, extending up and right, so that you can see the lower left corner. Place a 0 in there. Now for every other ...
8answers
755 views

Counting Distinct Real Roots of Low-Degree Polynomials

Challenge: I want to know about the real roots of polynomials. As a pure mathematician, I care about the existence of such roots, rather than their numeric values. The challenge is to write the ...
0answers
211 views
+250

Impress Donald Knuth by counting polyominoes on the hyperbolic plane

This challenge is inspired by a talk about Schläfli symbols, etc that I gave in a Geometry seminar. While I was putting together this challenge, I saw that Donald Knuth himself was interested in (some ...
1answer
161 views

What's the shortest way to round up to the next integer in python? [closed]

What's the fastest way given a mathematical expression or value to always round up to the next integer if the result from the expression is not an integer. e.g. 5.0001 -> 6 66.4 -> 67 99....
38answers
4k views

Is it really time?

A time in the format hhMMss is represented by six numbers in the range 0..9 (e.g.100203 for 3 seconds after 2 minutes after 10am (10:02.03), or ...
5answers
459 views

Computing a specific coefficient in a quotient of polynomials

Context After "Computing a specific coefficient in a product of polynomials", asking you to compute a specific coefficient of polynomial multiplication, I wish to create a "mirror" challenge, asking ...
0answers
55 views

A Problem on Hackerrank [closed]

I have a problem on Hackerrank: link:https://www.hackerrank.com/contests/101hack34/challenges/beautiful-string P/S: No limit on input size, no strings, arrays or non-basic data structures I don't ...
43answers
2k views
+50

(RGS 1/5) Binary multiples

(Note: the bounty should read 4 days and not 4 hours!) A binary multiple of a positive integer k is a positive integer n such ...
15answers
1k views

2answers
588 views

Are They Similar Polygons?

Task Given the x,y coordinates (coordinates are guaranteed to be integers) of the vertices of two simple polygons in clockwise or anti-clockwise order. Output a Truthy value if both the polygons are ...
0answers
101 views

Predictor Generator [closed]

Write a program that when given a string $S$, it generates a program of the same language as itself. The generated program, when given a continuous substring of $S$, should predict the next ...
4answers
491 views

Count regex matches

Your task Given a simple regular expression, you have to count how many strings of length n have a match of length n with the ...

15 30 50 per page