Questions tagged [alphabet]

For challenges involving the usage and manipulation of the alphabet.

Filter by
Sorted by
Tagged with
8 votes
9 answers
2k views

Wordle games without repeating letters

Given a word list, find all sets of five words of five letters each, such that the words of each set have 25 distinct letters in total. This challenge was inspired by this video by Matt Parker. ...
matteo_c's user avatar
  • 6,192
17 votes
17 answers
2k views

Number to letters

Your task Given a numerical string or integer \$\ge 0\$ (which may have leading zeros), convert it to letters using the below rules. Rules Loop through the digits: If the digit is ...
The Thonnu's user avatar
27 votes
54 answers
3k views

Alphabet Checksum

Your task Given a string of lowercase letters, output the "alphabet checksum" of that string, as a letter. Example Let's say we have the string "helloworld". With ...
The Thonnu's user avatar
26 votes
40 answers
2k views

Count /[^a-z]/ig with /[a-z]/ig

Write a program or function which takes a string of text as input and outputs the number of non-alphabetical characters in it (standard I/O rules apply). A non-alphabetical character is any character ...
thejonymyster's user avatar
3 votes
11 answers
491 views

Concatenate characters' indexes in the alphabet in the given numeral system

Given a word, get the indexes of each letter in the alphabet. For example: uncopyrightable becomes: ...
double-beep's user avatar
11 votes
46 answers
4k views

English An or A?

Given a string consisting of only upper and lower case letters, output an if it begins with a vowel, and a if not. For the ...
Larry Bagel's user avatar
  • 4,123
22 votes
30 answers
4k views

Find me vowels near you

Write a function that takes in a string and for each character, returns the distance to the nearest vowel in the string. If the character is a vowel itself, return 0. Vowels are : ...
Eternal Student's user avatar
15 votes
41 answers
1k views

Index and return 3 characters

The challenge is simple: Read 3 letters from a system input¹ and convert them to numbers (A-1, B-2, C-3...Z-26)². Print each of those numbers in the order the ...
Rowan McAlpin's user avatar
26 votes
29 answers
2k views

Find Abecedarian Words

An Abecedarian Word is a word whose letters are in alphabetical order. Your goal is to write a program that outputs all abecedarian words from a given lexicon. Rules: Standard Loopholes are forbidden....
Nilster's user avatar
  • 1,477
2 votes
12 answers
754 views

just a caesar cipher... with a twist [closed]

I have been going to puzzling.se, and people over there write stuff in rot13 a lot, sot this gave me an idea: Write a program that takes 2 inputs, a string and integer: the message to encode or ...
pyton's user avatar
  • 45
42 votes
15 answers
4k views

NATO phonetic spelling can take long

NATO phonetic alphabet is a spelling alphabet that associate to each of the 26 letters of the English alphabet one word (table below) that is easy to understand over the radio or telephone. For ...
user38141's user avatar
  • 521
19 votes
14 answers
2k views

NESCA: New English Stroke Count Alphabet

TLDR: Sort your input according to a new English alphabet somewhat based on Chinese stroke count methods. Background: In a Chinese glossary/index, finding terms that are contained within the book is ...
Sumner18's user avatar
  • 1,916
16 votes
10 answers
1k views

Output the International Phonetic Alphabet

The International Phonetic Alphabet is a system of phonetic notation intended to be able to accurately represent every sound used in spoken language. The alphabet contains 29 vowel letters ...
Sara J's user avatar
  • 3,785
-4 votes
13 answers
465 views

Dissect a word and arrange all its letters in alphabetical order

Question Write a program to accept one string on the console only and print back its letters arranged in alphabetical order. The string must only have the following characters: ...
Riley Jones's user avatar
47 votes
76 answers
8k views

Pointlessly make your way down the alphabet

Disclaimer: This challenge inspired by me spending the morning debugging recursive functions, which have been frying my brain a little. Here's an example of recursion, from a letter, we keep going to ...
AJFaraday's user avatar
  • 11.8k
36 votes
64 answers
3k views

Backwards Alphabet Triangle

Without taking any input, output this exact text: ...
AdmBorkBork's user avatar
  • 43.3k
16 votes
8 answers
838 views

Spelling on a Grid

(based on this deleted question) Take the English alphabet a b c d e f g h i j k l m n o p q r s t u v w x y z (spaces added for clarity), and split it into chunks ...
AdmBorkBork's user avatar
  • 43.3k
2 votes
0 answers
60 views

Spreadsheet Columns [duplicate]

Spreadsheet Columns In most spreadsheet programs, columns go A, B, C, ... ...
gadzooks02's user avatar
25 votes
25 answers
4k views

Fill a bowl with alphabet soup

We seem to never get tired of alphabet-related challenges... The recipe Given a string of letters S, and two positive integers ...
Luis Mendo's user avatar
  • 104k
20 votes
30 answers
2k views

Numbers Decrease while Letters Increase

Randomly inspired by Numbers Increase While Letters Decrease Given a list of mixed letters and integers (e.g., ['a', 2, 3, 'b']) increase the letters by one ...
AdmBorkBork's user avatar
  • 43.3k
-2 votes
11 answers
546 views

Convert alphanumeric (base-36) sentences into hexadecimal (base-16) sentences

I use "sentence" here loosely to mean "any sequence of words separated by spaces" and "words" to mean "sequences of alphanumeric (hexatrigesimal) characters unseparated by spaces". Conversion is from ...
DrQuarius's user avatar
  • 640
6 votes
2 answers
889 views

Check if all vowels exist in pairs of strings [closed]

Your program should find the number of string pairs (pairs of 2) that contain all vowels (a e i o u), when given an integer N and ...
Viswa's user avatar
  • 173
-6 votes
4 answers
430 views

This ain't it Chief

This is mostly for the memes. I regret existing. Rules Your code has to output, by either printing or showing in stdout, the phrase This ain't it Chief. in that ...
JLynchDesigns's user avatar
20 votes
21 answers
3k views

Write a function/method that takes in a string and spells that word out using the NATO Phonetic Alphabet. Titlecase optional

Write a program that takes in a string and spells that word out using the NATO Phonetic Alphabet. The mapping is as follows: ...
Jrod's user avatar
  • 201
31 votes
11 answers
1k views

Optimal Alphabet Stepping

Given an input string consisting of only letters, return the step-size that results in the minimum amount of steps that are needed to visit all the letters in order over a wrapping alphabet, starting ...
Jo King's user avatar
  • 47.1k
10 votes
26 answers
2k views

A function to take three integers and return a list of integers and alphabet-letters

Challenge We take three positive integers a, b, and c as input. Using these integers, first ...
Mochesane's user avatar
  • 119
13 votes
7 answers
875 views

Given N, output n-th element of ['A', 'B', 'AB', 'C', 'D', 'CD', 'ABCD', 'E', ...]?

Consider the following list: ...
d33tah's user avatar
  • 397
20 votes
11 answers
2k views

Socket - Plug compatibility

Traveling with electronics is always fun, especially when you need an adapter to charge them. Your challenge is to make planning a trip a little easier by checking if a given plug will be compatible ...
Asone Tuhid's user avatar
  • 2,353
28 votes
36 answers
4k views

Count Consecutive Characters

Given a string containing only letters, output the length of the longest run of consecutive alphabetical letters the word contains, where order does not matter. An example algorithm may sort the word, ...
Stephen's user avatar
  • 13.8k
14 votes
10 answers
1k views

Decoding the Kaadi system

You have come across an old Indian manuscript, one that describes mounds of buried treasure. The manuscript also tells you the location of the treasure, except that some crucial numbers have been ...
Sundar R's user avatar
  • 6,612
16 votes
20 answers
2k views

Produce a List of Rotonyms 1

Rotonyms 1 ROT13 ("rotate by 13 places") is a simple letter substitution cipher that replaces a letter with the 13th letter after it, in the alphabet. So, A ...
Umbrella's user avatar
  • 897
1 vote
0 answers
110 views

Vowel position changer [duplicate]

Challenge : Sort the vowels (only vowels) in the given string . Note : Vowels are the following characters: A, E, I, O, U Vowel sorting is cyclic i.e. After rearrangement the first vowel of sorted ...
Muhammad Salman's user avatar
34 votes
20 answers
4k views

Alphabet cannon

A cannonball is fired so that in the first eyeblink of its flight it ascends by N treetops, during the second eyeblink by N-1 ...
ngn's user avatar
  • 15.2k
39 votes
47 answers
7k views

Kolmogorov shifter

Output or display the following three lines of text, exactly as they are shown below. A trailing newline is accepted. ...
Stewie Griffin's user avatar
27 votes
53 answers
3k views

Confusing Alphabet Staircase

Given no input, output this interesting alphabet pattern in either case (the case has to be consistent) via an accepted output method: A AB ACBC ADBDCD AEBECEDE AFBFCFDFEF AGBGCGDGEGFG AHBHCHDHEHFHGH ...
qqq's user avatar
  • 1,586
10 votes
5 answers
660 views

Case-fold German

Given a German string and an indication of a case (lower/upper/title), fold the string to that case. Specifications Input will consist only of a–...
Adám's user avatar
  • 30.1k
6 votes
10 answers
596 views

Print the alphabet Christmas tree [duplicate]

I know it's 1.5 weeks after Christmas but trying to print an isosceles triangle in a monospaced font makes it look weird. Challenge Print the alphabet from A to Z so that it forms a filled triangle ...
bigyihsuan's user avatar
  • 9,268
22 votes
10 answers
1k views

Does a letter fit inside the other?

Do you remember my mat properly grouped by colors? Yesterday I was looking at it and realized that some letters fit inside others. Example: a letter P fits in the ...
Charlie's user avatar
  • 12.9k
20 votes
1 answer
448 views

Foam Bath Letters

If you have a small child in your house, you may have come across foam bath letters. These can be moistened and stuck to flat surfaces such as tiles and the side of the bath to make words and messages....
Matthew's user avatar
  • 651
42 votes
87 answers
4k views

A very long Terza Rima

Description Output the rhyme scheme for a very long Terza Rima. Input None. Output ...
LiefdeWen's user avatar
  • 3,875
1 vote
1 answer
126 views

Cases variations of a string [duplicate]

For any String that is composed of lower cased alphabetical characters, make a function that returns a list of all of it's variations, empty strings returns empty list Test Cases ...
gbattez's user avatar
  • 11
14 votes
6 answers
1k views

Spiral out the Alphabet!

Look at the following string. Notice a pattern? ABEFNOPEFGH DC G Q I M H R J LKJI S K D T L C U M BAZYXWV N E O D P C Q BAZYXWVUTSR As some might have ...
Mr. Xcoder's user avatar
  • 42.4k
14 votes
39 answers
2k views

Odd'em out: letters

Objective Write a program or function (or equivalent) that sorts out and returns the odd letter in the matrix of random size. Details You will be passed a matrix (as a string) as input of random ...
Joseph's user avatar
  • 953
37 votes
108 answers
6k views

Alphabet Staircase

The Challenge Your task is to create a program or function that outputs the following with no input: ...
SpookyGengar's user avatar
  • 1,823
49 votes
23 answers
10k views

Type the Alphabet - as fast as you can!

Your task is to make a program that measures how fast you can type the letters of the English alphabet. The program shall only accept lowercase letters a to ...
Danko Durbić's user avatar
3 votes
1 answer
263 views

Did you hear about alphametics? [duplicate]

Task The letters spell out actual words, but if you replace each letter with a digit from 0–9, it also “spells” an arithmetic equation. The trick is to figure out which letter maps to each digit. All ...
0x45's user avatar
  • 800
55 votes
41 answers
7k views

Make some Alphabet Rain

Alphabet Rain The Task: The basic premise is to print out the input string and then repeat each character vertically, based on it's (0-indexed) position in the (case-insensitive) alphabet ...
mkst's user avatar
  • 5,155
-4 votes
2 answers
319 views

Polyglot the English Alphabet! [closed]

In this polyglot challenge, you will work together to figure out how to output all the 26 letters of the English alphabet! How does this work? For each answer, you must pick a new language (or a new ...
arodebaugh's user avatar
76 votes
119 answers
9k views

Make an alphabet searchlight!

Inspired by a bug in a solution to this challenge, your challenge is to produce this exact text: ...
MD XF's user avatar
  • 13.9k
60 votes
49 answers
4k views

Fit a word into an alphabet grid

Inspired by a meme I saw earlier today. Challenge description Consider an infinite alphabet grid: ...
shooqie's user avatar
  • 5,652