国台办:两岸协商谈判及联系沟通机制的基础是“…
百度 科学技术部对外保留国家外国专家局牌子。
A competition to solve a particular problem through the usage and manipulation of strings.
2,249 questions
16
votes
8
answers
1k
views
Output shortest string containing all input strings
Given a list of words (letters only) in no particular order, output the shortest string containing every word (disregarding case). Output must be lowercase, except the first letter of each word is ...
12
votes
3
answers
2k
views
The shortest NP-complete problem
Find an NP-complete problem that covers all finite ASCII strings, and present a solver for the problem in the programming language of your choice.
By the definition, if there is a finite ASCII string ...
28
votes
27
answers
3k
views
Reverse NATO Phonetic Spelling
NATO Phonetic Spelling is a way to spell out letters so that they're distinguishable over a noisy connection. The mapping of letters (stolen from here) is as follows:
...
4
votes
4
answers
181
views
Shortest TeX document that generates ``Overfull \hbox`` Warning
Attempt to produce the shortest TeX document that generates the warning
Overfull \hbox (<x>pt too wide) in paragraph at lines <y>--<z>
that ...
19
votes
12
answers
1k
views
Print Dyck paths
Definition
A Dyck path of length \$2n\$ can be defined as a two-dimensional path such that:
The path consists of straight lines of equal length.
The path goes left to right while moving either up or ...
21
votes
20
answers
3k
views
Albuququerquerquerquerque challlengenge
Introduction
Esolangs.org user "Tommyaweosme", after getting 3-4 hours into a 17-hour video called "albuquerque but every time a word repeats it loops (normal speed)", created this ...
23
votes
10
answers
2k
views
Turn a string into a snake
Write a function or program which writes an input string out as a snake.
The snake starts heading to the right. If a / or \ ...
12
votes
14
answers
1k
views
Decide Equality of Closed Surfaces
Objective
Given two closed surfaces (a.k.a. closed 2-manifolds), decide whether they're homeomorphic.
Introduction
In lay terms, a closed surface is a finite-sized shape that resembles a flat plane ...
9
votes
19
answers
980
views
Determine Centrosymmetric String
Let's define a centrosymmetric string as follows:
First, add spaces to the end of each line to make the input a rectangle \$ A_{m×n} \$, the number of spaces added should be minimized and may be zero....
16
votes
12
answers
924
views
Repetition-restricted strings
Given an alphabet size, \$n>0\$, and an occurrence limit, \$k>0\$, produce the number, \$a(n, k)\$, of strings that may be constructed from the \$n\$ letters in the alphabet which have no more ...
13
votes
9
answers
838
views
split string into minimum number of palindromic substrings
Every string can be split into substrings that are all palindromes quite easily. For example, "abab" can be split into the palindromes ...
6
votes
5
answers
692
views
Interpret a SqueezeL string
Interpret a SqueezeL string
SqueezeL is a golfing language I'm developing. Its main distinguishing feature is its 40 character code page, which led me to create a semi-complicated encoding method for ...
27
votes
25
answers
1k
views
Distinct characters and distinct sizes
In this challenge you will write a program or function which takes a string and calculates its score.
The score is the number of distinct characters, plus each integer \$n\$ such that there is a ...
23
votes
16
answers
2k
views
Print the largest hidden double
Given a string of space delimited words, find the longest word such that, when that word is replaced with spaces, it is still a subsequence of the remaining string. Then, replace everything, except ...
9
votes
18
answers
2k
views
All code and no play makes 31415 a dull boy
In this crossword puzzle by Jack Lance, all the letters have been replaced by a fixed text string: All work and no play makes Jack a dull boy. Therefore, you have ...