← 返回 goldmansachs 的题目列表Find First Non-Repeating Character
类型:online_judge
Given a string, find and return the first non-repeating character. The string contains only lowercase alphabets. If there is no non-repeating character, return 'nil'. For example, input 'leetcode' should output 'l'; input 'aabb' should output 'nil'.
Example
Input
leetcode