### Communities

tag:snake search within a tag
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
created:<1w created < 1 week ago
post_type:xxxx type of post
Challenges

# Posts tagged string

This tag doesn't have any usage information yet.

This tag doesn't have a detailed wiki yet.

21 posts
71%
+3 −0

Given a string, convert all of its letters using ROT13, and all of its digits using ROT5. This is sometimes referred to as ROT13.5. Input A sequence of printable ASCII characters (character cod...

4 answers  ·  posted 3mo ago by trichoplax‭  ·  last activity 2mo ago by Razetime‭

60%
+1 −0

Given a sequence of lower case letters, sort them into order of height. Heights The heights of letters are dependent on font, so for this challenge the height order to be used is as defined below...

4 answers  ·  posted 3mo ago by trichoplax‭  ·  last activity 3mo ago by steffan153‭

50%
+0 −0

Given a radius R, output a text representation of a circle. Input A positive integer R (strictly greater than zero) You do not need to handle values of R greater than 32 Output A square ...

0 answers  ·  posted 3mo ago by trichoplax‭  ·  edited 3mo ago by trichoplax‭

Question code-golf string
62%
+3 −1

Background While we do have a "Hello, World!" challenge, we still don't have one regarding input. So let's do one! Challenge Create a program that takes an input (not as a function argument) the...

16 answers  ·  posted 1y ago by General Sebast1an‭  ·  last activity 4mo ago by south‭

Question code-golf string
60%
+1 −0

This is a fixed output challenge. It is similar to a standard Kolmogorov complexity challenge, except you get to choose your own fixed output. Given no input, output 55 fruits. You may choose any 5...

5 answers  ·  posted 4mo ago by trichoplax‭  ·  last activity 4mo ago by Shaggy‭

66%
+2 −0

This is a fixed output challenge. Output a textual representation of a chessboard hosting 8 queens, none of which are attacking each other. There are 92 ways of arranging them, 12 if rotations and...

5 answers  ·  posted 4mo ago by trichoplax‭  ·  last activity 4mo ago by Shaggy‭

50%
+0 −0

Given a potentially recurring binary string, output the number it represents, as a fraction in lowest terms. The notation used in this challenge for recurring digits is non-standard. An r is used ...

0 answers  ·  posted 4mo ago by trichoplax‭  ·  edited 4mo ago by trichoplax‭

60%
+1 −0

A chequer board (also spelt "checker board" in some places) is an 8 by 8 grid of squares alternating between 2 colours. Check whether a provided pattern could be a region of a chequer board. The c...

1 answer  ·  posted 4mo ago by trichoplax‭  ·  edited 4mo ago by trichoplax‭

81%
+7 −0

In Google Docs, the word count tool looks like this: Pages would not make sense, but your goal is to implement every other count. Definitions Words are strings of text separated by any amount ...

9 answers  ·  posted 1y ago by Quintec‭  ·  last activity 8mo ago by torres‭

Question code-golf string
60%
+1 −0

Challenge Make a program that takes input of an integer that's $n &gt; 1$ and print out a staircase using a specific character for stair basing (hashes (#) for demonstration; you can use spaces,...

7 answers  ·  posted 1y ago by General Sebast1an‭  ·  last activity 1y ago by radarek‭

86%
+11 −0

Given a list of strings(and optionally, their length) as input, weave the strings together. Intro Your goal is to mimic the WV operator in Pip. Take a list of strings and alternate between their ...

13 answers  ·  posted 2y ago by Razetime‭  ·  last activity 1y ago by radarek‭

Question code-golf string
77%
+5 −0

Given a string and a non-negative integer $n$, output a new string in which each character is repeated $n$ times. Test cases: "abc", 1 -&gt; "abc" "Hello", 0 -&gt; "" "double", 2 -&gt; "ddo...

14 answers  ·  posted 1y ago by celtschk‭  ·  last activity 1y ago by south‭

Question code-golf string
77%
+5 −0

Disclaimer This challenge also exists in CGCC, but if you want to compete here (too), then hop in! Challenge Recreate "99 Bottles of Beer on the Wall", using the least bytes possible. Lyrics: ...

13 answers  ·  posted 1y ago by General Sebast1an‭  ·  last activity 1y ago by General Sebast1an‭

75%
+4 −0

Introduction What is the Caesar shift cipher (ROT$n$)? It's basically a cipher sequence that changes a letter's value from the number chosen. If we use ROT1 on "games", we get "hbnft". The basic i...

7 answers  ·  posted 1y ago by General Sebast1an‭  ·  edited 1y ago by General Sebast1an‭

71%
+3 −0

Given a non-negative integer up to $999\,999\,999$, write it in English. The input number can be in any form other than English (though you'll typically want to use the native integer type of your...

3 answers  ·  posted 1y ago by celtschk‭  ·  last activity 1y ago by Moshi‭

66%
+2 −0

Background Inspired by this challenge that is also a mathematical English translator. Challenge Write a program that translates a mathematical expression using English with the following specifi...

1 answer  ·  posted 1y ago by General Sebast1an‭  ·  edited 1y ago by General Sebast1an‭

Question code-golf math string
71%
+3 −0

Challenge Make a program that takes input of a string and abbreviate it. All letters of an abbreviation are capitalized, so keep that in mind. Whitespace, numbers and non-English characters ar...

3 answers  ·  posted 1y ago by General Sebast1an‭  ·  last activity 1y ago by Hakerh400‭

Question code-golf string
71%
+3 −0

Background A House of I I went on an adventure Grabbed resources and making deeds Like start to work on the materials To build the shelter I need It was a marvelous one At least in the eyes ...

10 answers  ·  posted 1y ago by General Sebast1an‭  ·  last activity 1y ago by Quintec‭

Question code-golf string
71%
+3 −0

Given two strings, I define their product as follows: If any of the two strings is empty, the product is the empty string. If the second string consists of a single character, the result ...

6 answers  ·  posted 1y ago by celtschk‭  ·  last activity 1y ago by Hakerh400‭

Question code-golf string
80%
+6 −0

Two words are anagrams of each other if the letters of one can be reordered to spell the other; e.g. ADOBE and ABODE are anagrams. An alternate way of describing it is that both words contain the s...

5 answers  ·  posted 2y ago by snail_‭  ·  edited 1y ago by General Sebast1an‭

Question code-golf string
77%
+5 −0

Challenge You will be given a string and an ascii art as input. The string must be placed above the ascii art, and centered based on its longest line. The text BOTTOM TEXT must be placed below...

4 answers  ·  posted 1y ago by Razetime‭  ·  last activity 1y ago by user‭

Featured
Hot Posts

This community is part of the Codidact network. We have other communities too — take a look!