Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 18872

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

3 votes

Counter counter

J, 43 As a function: f=:[:+/[:,30$'$%&8B#0469@ADOPQRabdegopq'=/] f 'text goes here' 6 46 bytes (command line) As a standalone command-line program: echo+/,30$'$%&8B#0469@ADOPQRabdegopq'=/> …
Alex Shroyer's user avatar
1 vote

Don't google "google"

('google'-:])'google' Explanation Count (#) if y does not match (-:]) the string 'google', but if it does match, compute e to the power of the string 'google', which is an error. …
Alex Shroyer's user avatar
2 votes

Print a Wavy String Line-by-Line

K ( Kona ), 23 bytes A translation of the J answer by Galen {y@<(#y)#-1_(!x),|!x-1}
Alex Shroyer's user avatar
1 vote

As programmers say: Strive to be lazy

.=($~$@=))@cut f 'this is a test string' "this" is a test string this "is" a test string this is "a" test string this is a "test" string this is a test "string" If the input can be a list of boxes …
Alex Shroyer's user avatar
1 vote

What ROT is this? - decrypt ROT-n

Elm - 465 Not going to win any golfing awards, but it makes a static webpage which displays a list of the form [(rotation number, rotated string)] as you type. … S.fromList . r s)x,(26-x,S.fromList<|r s x)))[0..25] c=input noContent main=above<~(field defaultStyle c.handle id""<~c.signal)~(asText . b . .string<~c.signal) …
Alex Shroyer's user avatar
5 votes

Horizontal graph of word length

J, 10 bytes '*'$~$&>;:'This is an example histogram of word length' **** ** ** ******* ********* ** **** ****** Bonus: vertical (12 bytes) |:'*'$~$&>;:'This is …
Alex Shroyer's user avatar
0 votes

How fast am I vrooooming?

J, 35 bytes (]{~0<{.)(1{'^[Vv]r(o*)m!'rxmatch]) Returns negative 1 if the pattern doesn't match.
Alex Shroyer's user avatar
0 votes

Is this string a square?

J, 12 bytes (*./=#)#;._2 Input requires trailing LF or CR. Explanation: ;._2 split into intervals and discard trailing atom # count each group (*./=#) is a fork which returns 0 (false) or 1 (tr …
Alex Shroyer's user avatar