Skip to main content

Questions tagged [string]

A competition to solve a particular problem through the usage and manipulation of strings.

11 votes
17 answers
880 views

Identify Redundant Regex

A redundant regular expression (regex) is defined here as a regex which has some amount of characters which can be removed while not affecting its functionality -- i.e. it matches the exact same set ...
97.100.97.109's user avatar
6 votes
8 answers
896 views

Validate DNA Sequences with Telomeres

Telomeres are regions of repetitive DNA sequences that occur at the ends of linear chromosomes in eukaryotes (such as humans and other mammals). In vertebrates, the telomeric repeat sequence is ...
M--'s user avatar
  • 956
-10 votes
7 answers
265 views

Internationalisation -> I18n (numeronym)

Write the shortest program or function that accepts a sequence of three or more letters and returns its I18n-style numeronym, preserving the original letter case. The I18n-style numeronym is formed by ...
Steve Bennett's user avatar
5 votes
4 answers
345 views

DNA reading frame

DNA is read in groups of three nucleotides (the letters you see in a sequence), called codons, for determining what protein sequence the portion of DNA will yield. I already used this in a previous ...
Whitehot's user avatar
  • 633
-2 votes
0 answers
138 views

Create a string satisfying a set of include/exclude/length constraints

Send a message containing "ZCKJSGLZD" ensuring the text length is not 9 and text length is at maximum 25 and text length is at minimum 11 and text length is at minimum 11 and text length is ...
l4m2's user avatar
  • 32.3k
-5 votes
14 answers
435 views

Text Flattening Program

Input: A string, can be multi-line. The newlines must to be real newline (e.g., you cannot request that each newline be (n)). There is another input, a number (not ...
QOO-OOKALAN's user avatar
5 votes
13 answers
851 views

Which letter is missing? [closed]

Given a printable ASCII string, return any letter which is not present (ignoring case), if possible, else return the empty string. Test Cases: ...
Steve Bennett's user avatar
5 votes
3 answers
965 views

Multiply the input by 2

Your goal is to write a program which will take an input and multiply it by 2. However, there are some catches. You will get an input in one of a few forms: A number (...
Ted's user avatar
  • 2,407
12 votes
2 answers
230 views

Autocomplete a word at the cursor position

You will be given a block of text and a cursor position at the end of a possibly incomplete word. You must output a suggestion for what this word (let's call it w) ...
Ted's user avatar
  • 2,407
12 votes
15 answers
2k views

Unroll the loop!

A loop is a rectangle of text like this: hgf ile jkd abc To unroll it, you start at the bottom left, and proceed to the right, spiralling anti-clockwise in towards ...
Steve Bennett's user avatar
21 votes
10 answers
2k views

"e" ejects the letters. Re-enter them

Overview I have a sample of 10 quotes. You will receive as input to your program one of these quotes, however all the vowels (aeiou) will be replaced with the ...
Ted's user avatar
  • 2,407
2 votes
4 answers
613 views

Program Generator: Print a Paragraph

Objective Your challenge is to write a program that, given a paragraph from a book, will output another program that prints out that paragraph. (See my example program in an answer) Scoring The link ...
ACertainArchangel's user avatar
5 votes
3 answers
425 views

Cancel strings to make them short

Overview You will be given a list of strings. If any two elements are equal, you can delete both of them. If one element a is a substring of element ...
Ted's user avatar
  • 2,407
9 votes
11 answers
2k views

Recognize my coworker

My work has recently changed the employee tracking system to one that happens to include a fun game to learn your coworker's faces: Just a small problem: all the pictures include that person's ...
Themoonisacheese's user avatar
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 ...
Steve Bennett's user avatar

15 30 50 per page
1
2 3 4 5
153