Python data engineering interview problem. Difficulty: intermediate. Pattern: Hashing. About 15 minutes. Part of the Pro drill bank.
Request ids are short strings. An incident tool wants the first character that never repeats, which is a cheap fingerprint for 'this id looks unique'.
Return the first non-repeating character in a request id.
Input: first_unique_char('aabbc') Output: 'c' This input follows the stated rules and produces this output.
Topics: lakebench, python, hash-based-problems.
More Python interview questions · All interview problems · Learn data engineering
Interview-style drill: Return the first character in a string that does not repeat elsewhere in it.
Return the first non-repeating character in a request id.