Skip to content

Practice Find the K-th Character in String Game I

Read the task, work through the examples, and check your approach against the constraints. Use the original LeetCode task for coding and submissions.

Easy#3304
LeetCode Problem

Find the K-th Character in String Game I

Problem Statement

Start with word = "a". In each operation, create a copy of word with every letter advanced by one in the alphabet, wrapping z to a, then append that copy to word. Repeat as needed and return the kth character using 1-based indexing.

Source: Find the K-th Character in String Game I on LeetCode. Use the original task for its coding environment and submissions.

Examples

# Example 1

Input
k = 5
Output
"b"

# Example 2

Input
k = 10
Output
"c"

Constraints

1 <= k <= 500

Related LeetCode Problems

Practice more problems similar to Find the K-th Character in String Game I.

Review your practice with PhantomCodeAI

After trying the problem yourself, use the app to discuss your approach, complexity, and edge cases.