Recurring Character

Start Timer

0:00:00

Upvote
19
Downvote
Save question
Mark as completed
View comments (52)

Given a string, write a function recurring_char to find its first recurring character. Return None if there is no recurring character.

Treat upper and lower case letters as distinct characters.

You may assume the input string includes no spaces.

Example 1:

Input:

input = "interviewquery"

Output:

output = "i"

Example 2:

Input:

input = "interv"

Output:

output = None
.
.
.
.
.


Comments

Loading comments