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

learn more… | top users | synonyms

4
votes
0answers
97 views

Ungolf batch programs [on hold]

This question wants you to golf batch programms. In Batch you can use set x=averylongbatchcommand %x% arg1 which expands to set x=averylongbatchcommand averylongbatchcommand arg1 Your task is it ...
34
votes
51answers
2k views

N(e(s(t))) a string

To "function nest" a string, you must: Treat the first character as a function, and the following characters as the arguments to that function. For example, if the input string was Hello, then the ...
6
votes
2answers
194 views

String Calculator

Assume you're writing in one method, (or whatever you call them) with 3 inputs: the first string, a character that contains a +, - or * symbol, and the second string. Example in Java: public String ...
15
votes
21answers
928 views

Spaced-out numbers

Given a list of N non-negative integers, output those numbers with each left-padded by spaces to a length of N. (Alternatively, return a character/string list.) You may assume that N is greater than ...
0
votes
1answer
94 views

The brain is smarter than you think [duplicate]

As you may (or may not) know, the human brain is very good at filtering stuff out. Making things easier for us. Take the next sentence for example: Tihs is a vrey esay seetcnne wtih smoe lnog wdros ...
32
votes
9answers
2k views

Find the Infinity Words!

(Note: This is a spin-off of my previous challenge Find the Swirling Words!) Definition of Infinity Word: If you connect with curves all the characters of an Infinity Word on the alphabet (A-Z) you ...
10
votes
41answers
2k views

Nest a string inside an array n times

You must produce a function which nests a string s inside an array, n times >>> N("stackoverflow",2) [['stackoverflow']] Parameters: s - An ascii string n - An integer >= 0 Rules ...
17
votes
15answers
1k views

Letter-replacement challenge

The idea is simple. You've to create a "visualised" letter-replacement, by providing 3 strings (input can be comma separated, separate inputs, or as an array). The first segment is the word you want ...
18
votes
29answers
1k views

Export The $PATH Variable, Line-By-Line

Inspired by this question on AskUbuntu. Your job is extremely simple. Take the PATH environment variable (echo $PATH) and export it such that each entry (separated by the : character) is on its own ...
19
votes
23answers
996 views

Exploded Suffixes

Given an ASCII string, output the exploded suffixes of it. For example, if the string was abcde, there are 5 suffixes, ordered longest to shortest: abcde bcde cde de e Each suffix is then exploded, ...
10
votes
12answers
301 views

Given a string, Return its Cumulative Delta [duplicate]

Related Explanation Given a string such as DCBA, convert it to ASCII ordinals, such as 68 67 66 65. Then, take the differences between each value, eg 67 - 68 = -1, 66 - 67 = -1... giving -1 -1 -1 ...
33
votes
40answers
2k views

EvenSt-ring C ode - g ol!f

An 'Even string' is any string where the parity of the ASCII values of the characters is always alternating. For example, the string EvenSt-ring$! is an even-string because the ASCII values of the ...
38
votes
9answers
2k views

Square, diamond, square, diamond

Task Given a non-empty string of lowercase ASCII letters a-z, take its first character, and: Surround it with a square of copies of the second character, Surround that with a diamond of copies of ...
29
votes
21answers
3k views

Simulate keystrokes

Your job is to simulate a couple of keystrokes that a user types in. Input A string array or string with a delimiter of your choice (outside the range 32-126) containing at least one 'keystroke'. ...
3
votes
1answer
141 views

String Similarity using Jaro-Winkler

String Similarity String similarity is basically a ratio of how similar one string is to another. This can be calculated in many ways, and there are various algorithms out there for implementing a ...

15 30 50 per page