Given a string s, return the first character that appears exactly once in the string.
""
) or a special marker such as
None
/
null
.
Input: s (string)
Output: the first non-repeating character (or empty marker)
Constraints (typical):
1 <= len(s) <= 10^5
s
may contain letters (assume ASCII unless stated otherwise)
You are given a list of score records. Each record contains a name (string) and a score (integer).
Return the highest average score among all names.
Input: records = [(name1, score1), (name2, score2), ...]
Output: the maximum average across names
Constraints (typical):
1 <= len(records) <= 10^5
score
can be negative or positive (state assumption if you restrict it)