Given a string, return the first repeated character, defined as the character whose second occurrence appears earliest when scanning left to right. Return None if no character repeats. (Confirm this…
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.