Your question is Nth Non-Repeating Character. Start with the requirements on the right.
Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.
A Zynga game event stream contains a sequence of characters representing compact player actions. Given a string s and a positive integer n, return the nth character that appears exactly once in the entire string, preserving the characters' original order.
Process the input string in a single left-to-right iteration. If fewer than n characters are non-repeating, return None.
s, a string, and n, a positive integer.None if it does not exist.A and a are different characters.def find_nth_non_repeating(s, n):