# All Questions

14,119 questions
Filter by
Sorted by
Tagged with
272 views

### Wait, ASCII was 128 characters all along?

Challenge In this challenge, you have to take a nonnegative integer as input, convert it into base-128 bytes (0 → 0x00, 127 → ...
55 views

### Choosing the best approach for developing a system for buyers to sell to multiple sellers on your market place [closed]

I have been messing around with the PayPal API v2, and I have asked a Question with no reply of what to do next once the seller onboards. So then I looked at Braintree and started to get used to that ...
• 91
2k views

### Sorting with a deque

You're given an array of positive integers. Your job is to sort them using an initially empty deque (double-ended queue) by the following procedure: Take a number from the front of the array, and ...
• 77.5k
70 views

### Calling functions and addressing arrays without operators [closed]

Is there a language where they write just ai for a[i] and sqrt2 for sqrt(2). I mean that arrays are treated like functions and calling a function does not need an operator.
1k views

366 views

### Generate a subgroup of a free group

In group theory, the free group with $n$ generators can be obtained by taking $n$ distinct symbols (let's call them $a, b, c ...$ etc), along with their inverses $a^{-1},b^{-1},c^{-1} ...$ . ...
• 39.1k
463 views

### Sum of Positive and Negative Powers of 2

Given a binary string equivalent to $n$, write out the least possible number of terms needed to express $n$. A term is defined as an addition of either $2^k$ or $(-2^k)$, where $k$ is a non-...
2k views

• 311
1k views

### Compare two strings, with NaC

I just thought of this idea: if we have NaN ("not a number") for floats, how about NaC ("not a character") for a single unknown character in a string? Your input should be two ...
• 1,381
811 views

### Convert CSV tables to MediaWiki tables

Input a CSV table, like this: data00,data01,data02,...,data0m data10,data11,data12,...,data1m ... datan0,datan1,datan2,...,datanm The cells in the CSV table is ...
• 1,115
1k views

### Is this a solvable Numberlink?

Challenge Per Wikipedia: Numberlink is a type of logic puzzle involving finding paths to connect numbers in a grid. The player has to pair up all the matching numbers on the grid with single ...
• 1,477
681 views

### Complex Exponentiation [closed]

As the title says! Raise one complex number to the power of another. (a+bi)^(c+di)(using the principal branch of the complex logarithm) Requires four inputs a, b, c, d. You can combine a, b, c, d into ...
3k views

### Cold Bee and Old Beer

Introduction: Inspired by this silly meme video, which states 'COLD BEER', but is slightly too large for the scrolling advertisement board, causing it to display either 'COLD BEE' or 'OLD BEER' ...
• 128k
1k views

### Hoop, Hoop, Hoop, Hoop, Eye-Eye-Eye-Eye

The Horrible Histories song "Learn Your Hieroglyphics" mentions a fanmade number system. Numbers are written as a sum of 10's ("hoops") and 1's ("eyes"), for example 99 ...
• 1,381
1k views

### Decode a Caesar ciphertext with high probability

Caesar ciphers A Caesar cipher with shift=N is the process of replacing any alphabetic character in a string with the letter which is N positions ahead in the alphabet (wrapping back at the beginning)....
• 3,684
2k views

### Compute the degree of a string

The input is a string made of the letters a,b,c only. The output is an integer representing the degree of the sequence. The degree of a sequence is computed as follows: Assume that each of the ...
• 1,993