Alphabet Symmetry

Determines the number of letters in a word that match their alphabetical position.

Easy1/4/2024

Problem statement

Given a string, return the number of letters in the string that match their alphabetical position. For example, given the string "aoc", return 2 since "a" and "c" appear in the string at positions 1 and 3, respectively.

Problem leaderboard

#
Size
%
Users
#1
47 c.
Top 26%
helbling
Natanaelel
lydxn
Shanethegamer
Irratix
tree
fuzzylojik-golf
voytxt
Steffan
#2
48 c.
Top 35%
sisyphus-ppcg
two-bad
Salutations45
#3
49 c.
Top 41%
Tony
val
#4
50 c.
Top 44%
Lv0Sys
#5
52 c.
Top 53%
josex2r
scpchicken
davyboyh
#6
53 c.
Top 62%
madeforlosers
Thomasdcrt
AlephSquirrel
#7
54 c.
Top 79%
alexisab
SXW172P_thdgit
sean
Mif712
Logicer
maximec-indy
#8
56 c.
Top 85%
SephQ
MaelkMark
#9
57 c.
Top 94%
KrausRaus
ComputerKWasTaken
albanian-laundromat
#10
60 c.
Top 97%
Pascal
#11
61 c.
Top 100%
goodwyna21