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
923 views

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
8 votes
8 answers
970 views

This is inspired by this homework assignment. Telomeres are regions of repetitive DNA sequences that occur at the ends of linear chromosomes in eukaryotes (such as humans and other mammals). In ...
M--'s user avatar
  • 986
-7 votes
8 answers
314 views

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
357 views

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
-5 votes
14 answers
445 views

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
857 views

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
980 views

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,417
12 votes
2 answers
232 views

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,417
12 votes
15 answers
2k views

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

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,417
2 votes
4 answers
621 views

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
431 views

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,417
9 votes
11 answers
2k views

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

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
12 votes
3 answers
2k views

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 ...
Dannyu NDos's user avatar
  • 7,381

15 30 50 per page
1
2 3 4 5
153