Interview Query

Recurring Character

7
Have you seen this question before?

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
Next question: Low Precision
.....
Python 3.9.6
Loading editor
Use Shift + Enter to run code